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
NameType
idTxOutputId
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
NameType
addressAddress
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
NameType
txTx
Returns

Promise<TxId>