Skip to main content

decodeCoinInfo

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.9.0


@midnight-ntwrk/compact-runtime / decodeCoinInfo

Function: decodeCoinInfo()

function decodeCoinInfo(coin): CoinInfo;

Decode a CoinInfo from Compact's CoinInfo TypeScript representation

Parameters​

coin​

color​

Uint8Array

nonce​

Uint8Array

value​

bigint

Returns​

CoinInfo