Helios API/ API Reference/ Classes/
KoiosV0
Koios network interface.
Implements
Implements
Index
Constructors
constructor
• new KoiosV0(networkName
)
Parameters
Name | Type |
---|---|
networkName | "preview" | "preprod" | "mainnet" |
Methods
getParameters
▸ getParameters(): Promise
<NetworkParams
>
Returns
Promise
<NetworkParams
>
Implementation of
getUtxo
▸ getUtxo(id
): Promise
<TxInput
>
Parameters
Name | Type |
---|---|
id | TxOutputId |
Returns
Promise
<TxInput
>
Implementation of
getUtxos
▸ getUtxos(address
): Promise
<TxInput
[]>
Parameters
Name | Type |
---|---|
address | Address |
Returns
Promise
<TxInput
[]>
Implementation of
hasUtxo
▸ hasUtxo(utxo
): Promise
<boolean
>
Used by KoiosV0.resolveUsingUtxo()
.
Parameters
Name | Type |
---|---|
utxo | TxInput |
Returns
Promise
<boolean
>
submitTx
▸ submitTx(tx
): Promise
<TxId
>
Parameters
Name | Type |
---|---|
tx | Tx |
Returns
Promise
<TxId
>
Implementation of
resolveUsingUtxo
▸ Static
resolveUsingUtxo(refUtxo
): Promise
<KoiosV0
>
Parameters
Name | Type |
---|---|
refUtxo | TxInput |
Returns
Promise
<KoiosV0
>