• Decode UTF-8 bytes to a TokenId. This can be used to deserialize token IDs in transactions.

    Returns

    The decoded TokenId.

    Throws

    If the decoded string is longer than 255 utf-8 encoded bytes or contains invalid UTF-8.

    Parameters

    • bytes: ArrayBuffer

      The UTF-8 byte array to decode.

    Returns TokenId

Generated using TypeDoc