Skip to main content

@midnight/ledger v2.0.8Readme | API


@midnight/ledger v2.0.8 / QualifiedCoinInfo

Type alias: QualifiedCoinInfo

type QualifiedCoinInfo: {
mt_index: bigint;
nonce: Nonce;
type: TokenType;
value: bigint;
};

Information required to spend an existing coin, alongside authorization of the owner

Type declaration

mt_index

mt_index: bigint;

The coin's location in the chain's Merkle tree of coin commitments

Bounded to be a non-negative 64-bit integer

nonce

nonce: Nonce;

The coin's randomness, preventing it from colliding with other coins

type

type: TokenType;

The coin's type, identifying the currency it represents

value

value: bigint;

The coin's value, in atomic units dependent on the currency

Bounded to be a non-negative 64-bit integer