Transaction
UTXO
Represents a UTXO (Unspent Transaction Output).
Implements
Implements
UTXOLike
Constructors
new UTXO()
Constructs a new UTXO instance with null properties.
Returns
Source
Accessors
address
Gets the address.
Sets the address.
Throws
If the address is invalid.
Parameters
Parameter | Type | Description |
---|---|---|
value | string | The address. |
Returns
string
The address.
Source
denomination
Gets the denomination.
Sets the denomination.
Throws
If the denomination value is invalid.
Parameters
Parameter | Type | Description |
---|---|---|
value | null | number | The denomination. |
Returns
null
| number
The denomination.
Source
index
Gets the index.
Sets the index.
Parameters
Parameter | Type | Description |
---|---|---|
value | null | number | The index. |
Returns
null
| number
The index.
Source
txhash
Gets the transaction hash.
Sets the transaction hash.
Parameters
Parameter | Type | Description |
---|---|---|
value | null | string | The transaction hash. |
Returns
null
| string
The transaction hash.
Source
Methods
toJSON()
Converts the UTXO instance to a JSON object.
Returns
any
A JSON representation of the UTXO instance.
Source
from()
Creates a UTXO instance from a UTXOLike object.
Parameters
Parameter | Type | Description |
---|---|---|
utxo | UTXOLike | The UTXOLike object to convert. |
Returns
The UTXO instance.
Source
Was this page helpful?