Helios API/ API Reference/ Classes/

NetworkSlice

Implements

Implements

Index

Constructors

constructor

new NetworkSlice(params, utxos)

Parameters

NameType
paramsNetworkParams
utxosNetworkSliceUTxOs

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(addr): Promise<TxInput[]>

Parameters

NameType
addrAddress

Returns

Promise<TxInput[]>

Implementation of

Network.getUtxos

submitTx

submitTx(tx): Promise<TxId>

Parameters

NameType
txTx

Returns

Promise<TxId>

Implementation of

Network.submitTx

toJson

toJson(): any

Returns

any

fromJson

Static fromJson(obj): NetworkSlice

Parameters

NameType
objany

Returns

NetworkSlice

init

Static init(network, addresses): Promise<NetworkSlice>

Parameters

NameType
networkNetwork
addressesAddress[]

Returns

Promise<NetworkSlice>