@midnight-ntwrk/onchain-runtime v0.2.2 • Readme | API
@midnight-ntwrk/onchain-runtime v0.2.2 / decodeCoinInfo
Function: decodeCoinInfo()
decodeCoinInfo(coin): CoinInfo
Decode a CoinInfo from Compact's CoinInfo
TypeScript representation
Parameters
• coin
• coin.color: Uint8Array
• coin.nonce: Uint8Array
• coin.value: bigint