@midnight/ledger v3.0.2 • Readme | API
@midnight/ledger v3.0.2 / encodeQualifiedCoinInfo
Function: encodeQualifiedCoinInfo()
encodeQualifiedCoinInfo(coin): {
color: Uint8Array;
mt_index: bigint;
nonce: Uint8Array;
value: bigint;
}
Encode a QualifiedCoinInfo into a Compact's QualifiedCoinInfo
TypeScript representation
Parameters
• coin: QualifiedCoinInfo
Returns
{
color: Uint8Array;
mt_index: bigint;
nonce: Uint8Array;
value: bigint;
}
color
color: Uint8Array;
mt_index
mt_index: bigint;
nonce
nonce: Uint8Array;
value
value: bigint;