Skip to main content

@midnight-ntwrk/onchain-runtime v0.2.2Readme | API


@midnight-ntwrk/onchain-runtime v0.2.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;