Helios API/ API Reference/ Classes/
NetworkSlice
Implements
Implements
Index
Constructors
constructor
• new NetworkSlice(params
, utxos
)
Parameters
Name | Type |
---|---|
params | NetworkParams |
utxos | NetworkSliceUTxOs |
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(addr
): Promise
<TxInput
[]>
Parameters
Name | Type |
---|---|
addr | Address |
Returns
Promise
<TxInput
[]>
Implementation of
submitTx
▸ submitTx(tx
): Promise
<TxId
>
Parameters
Name | Type |
---|---|
tx | Tx |
Returns
Promise
<TxId
>
Implementation of
toJson
▸ toJson(): any
Returns
any
fromJson
▸ Static
fromJson(obj
): NetworkSlice
Parameters
Name | Type |
---|---|
obj | any |
Returns
init
▸ Static
init(network
, addresses
): Promise
<NetworkSlice
>
Parameters
Returns
Promise
<NetworkSlice
>