Skip to main content

decodeCoinInfo

For the complete documentation index, see llms.txt

@midnight-ntwrk/ledger v3.0.2 • Readme | API


@midnight-ntwrk/ledger v3.0.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

Returns​

CoinInfo