Skip to main content

@midnight-ntwrk/onchain-runtime v0.1.14Readme | API


@midnight-ntwrk/onchain-runtime v0.1.14 / CoinInfo

Type alias: CoinInfo

type CoinInfo: {
nonce: Nonce;
type: TokenType;
value: bigint;
};

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

Type declaration

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