Skip to main content

UtxoSpend

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / UtxoSpend

Type Alias: UtxoSpend

type UtxoSpend = {
intentHash: IntentHash;
outputNo: number;
owner: SignatureVerifyingKey;
type: RawTokenType;
value: bigint;
};

An input appearing in an Intent, or a user's local book-keeping.

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: SignatureVerifyingKey;

The signing key owning these tokens.


type​

type: RawTokenType;

The token type of this UTXO


value​

value: bigint;

The amount of tokens this UTXO represents