Function readTokenPrefix

  • Attempt to read a transaction Output's token prefix from the provided ReadPosition, returning either an error message (as a string) or an object containing the (optional) token information and the next ReadPosition.

    Rather than using this function directly, most applications should use readLockingBytecodeWithPrefix.

    Parameters

    Returns MaybeReadResult<{
        token?: {
            amount: bigint;
            category: Uint8Array;
            nft?: {
                capability: "none" | "mutable" | "minting";
                commitment: Uint8Array;
            };
        };
    }>

Generated using TypeDoc