Class

TxoRef

TxoRef()

Indicates whether the TXO ref is an absolute or relative value.

Constructor

# new TxoRef()

View Source pkg/wasm.js, line 2415

Methods

# static absolute(idx) → {TxoRef}

Creates an absolute transaction reference as a JSON string.

Use absolute txo indexing when referring to an output that has been assigned a utxo index (i.e. when the utxo has been committed to the ledger in an earlier transaction).

Arguments

Parameters:
Name Type Description
idx BigInt

Txo (transaction output) SID.

View Source pkg/wasm.js, line 2461

TxoRef

# static relative(idx) → {TxoRef}

Creates a relative txo reference as a JSON string. Relative txo references are offset backwards from the operation they appear in -- 0 is the most recent, (n-1) is the first output of the transaction.

Use relative txo indexing when referring to outputs of intermediate operations (e.g. a transaction containing both an issuance and a transfer).

Arguments

Parameters:
Name Type Description
idx BigInt

Relative TXO (transaction output) SID.

View Source pkg/wasm.js, line 2443

TxoRef