Function encodeTokenPrefix
- encodeTokenPrefix(token: undefined | {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
}): Uint8Array
-
Parameters
-
token: undefined | {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
}
Returns Uint8Array
Given token data, encode a token prefix.
This function does not fail, but returns an empty Uint8Array if the token data does not encode any tokens (even if
token.category
is set).