Skip to main content

UtxoSpend

@midnight/ledger v7.0.0


@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