Skip to main content

ShieldedCoinInfo

@midnight/ledger v7.0.0


@midnight/ledger / ShieldedCoinInfo

Type Alias: ShieldedCoinInfo

type ShieldedCoinInfo = {
nonce: Nonce;
type: RawTokenType;
value: bigint;
};

Information required to create a new coin, alongside details about the recipient

Properties

nonce

nonce: Nonce;

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


type

type: RawTokenType;

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