Helios API/ API Reference/ Interfaces/
Network
Blockchain query interface.
Implemented by
Index
Properties
getParameters
• getParameters: () => Promise
<NetworkParams
>
Type declaration
▸ (): Promise
<NetworkParams
>
Returns the latest network parameters.
Returns
Promise
<NetworkParams
>
getUtxo
• getUtxo: (id
: TxOutputId
) => Promise
<TxInput
>
Type declaration
▸ (id
): Promise
<TxInput
>
Returns a single TxInput (that might already have been spent).
Parameters
Name | Type |
---|---|
id | TxOutputId |
Returns
Promise
<TxInput
>
getUtxos
• getUtxos: (address
: Address
) => Promise
<TxInput
[]>
Type declaration
▸ (address
): Promise
<TxInput
[]>
Returns a complete list of UTxOs at a given address.
Parameters
Name | Type |
---|---|
address | Address |
Returns
Promise
<TxInput
[]>
submitTx
• submitTx: (tx
: Tx
) => Promise
<TxId
>
Type declaration
▸ (tx
): Promise
<TxId
>
Submits a transaction to the blockchain and returns the id of that transaction upon success.
Parameters
Name | Type |
---|---|
tx | Tx |
Returns
Promise
<TxId
>