Function encodeTokenPrefix

  • Given Output.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).

    Parameters

    • token: undefined | {
          amount: bigint;
          category: Uint8Array;
          nft?: {
              capability: "none" | "mutable" | "minting";
              commitment: Uint8Array;
          };
      }

      the token data to encode

    Returns Uint8Array

Generated using TypeDoc