@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / 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;