Skip to main content
Represents a UTXO (Unspent Transaction Output).

Implements

Implements

  • UTXOLike

Constructors

new UTXO()

Constructs a new UTXO instance with null properties.

Returns

UTXO

Source

transaction/utxo.ts:271

Accessors

address

Gets the address.
Sets the address.

Throws

If the address is invalid.

Parameters

Returns

string The address.

Source

transaction/utxo.ts:217

denomination

Gets the denomination.
Sets the denomination.

Throws

If the denomination value is invalid.

Parameters

Returns

null | number The denomination.

Source

transaction/utxo.ts:237

index

Gets the index.
Sets the index.

Parameters

Returns

null | number The index.

Source

transaction/utxo.ts:199

txhash

Gets the transaction hash.
Sets the transaction hash.

Parameters

Returns

null | string The transaction hash.

Source

transaction/utxo.ts:181

Methods

toJSON()

Converts the UTXO instance to a JSON object.

Returns

any A JSON representation of the UTXO instance.

Source

transaction/utxo.ts:284

from()

Creates a UTXO instance from a UTXOLike object.

Parameters

Returns

UTXO The UTXO instance.

Source

transaction/utxo.ts:299