Utxo
@midnight/ledger / Utxo
Type Alias: Utxo
type Utxo = {
intentHash: IntentHash;
outputNo: number;
owner: UserAddress;
type: RawTokenType;
value: bigint;
};
An unspent transaction output
Properties
intentHash
intentHash: IntentHash;
The hash of the intent outputting this UTXO
outputNo
outputNo: number;
The output number of this UTXO in its parent Intent.
owner
owner: UserAddress;
The address owning these tokens.
type
type: RawTokenType;
The token type of this UTXO
value
value: bigint;
The amount of tokens this UTXO represents