Helios API/ API Reference/ Classes/

KoiosV0

Koios network interface.

Implements

Implements

Index

Constructors

constructor

new KoiosV0(networkName)

Parameters

NameType
networkName"preview" | "preprod" | "mainnet"

Methods

getParameters

getParameters(): Promise<NetworkParams>

Returns

Promise<NetworkParams>

Implementation of

Network.getParameters

getUtxo

getUtxo(id): Promise<TxInput>

Parameters

NameType
idTxOutputId

Returns

Promise<TxInput>

Implementation of

Network.getUtxo

getUtxos

getUtxos(address): Promise<TxInput[]>

Parameters

NameType
addressAddress

Returns

Promise<TxInput[]>

Implementation of

Network.getUtxos

hasUtxo

hasUtxo(utxo): Promise<boolean>

Used by KoiosV0.resolveUsingUtxo().

Parameters

NameType
utxoTxInput

Returns

Promise<boolean>

submitTx

submitTx(tx): Promise<TxId>

Parameters

NameType
txTx

Returns

Promise<TxId>

Implementation of

Network.submitTx

resolveUsingUtxo

Static resolveUsingUtxo(refUtxo): Promise<KoiosV0>

Parameters

NameType
refUtxoTxInput

Returns

Promise<KoiosV0>