Coda by Ian Macalinao
    Preparing search index...

    Type Alias RedeemAsyncInput<TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountVoucher, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>

    type RedeemAsyncInput<
        TAccountTreeAuthority extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountLeafOwner extends InstructionSignerInput = InstructionSignerInput,
        TAccountLeafDelegate extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountMerkleTree extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoucher extends InstructionAccountInput = InstructionAccountInput,
        TAccountLogWrapper extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCompressionProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        compressionProgram?: TAccountCompressionProgram;
        creatorHash: RedeemInstructionDataArgs["creatorHash"];
        dataHash: RedeemInstructionDataArgs["dataHash"];
        index: RedeemInstructionDataArgs["index"];
        leafDelegate: TAccountLeafDelegate;
        leafOwner: TAccountLeafOwner;
        logWrapper?: TAccountLogWrapper;
        merkleTree: TAccountMerkleTree;
        nonce: RedeemInstructionDataArgs["nonce"];
        root: RedeemInstructionDataArgs["root"];
        systemProgram?: TAccountSystemProgram;
        treeAuthority?: TAccountTreeAuthority;
        voucher: TAccountVoucher;
    }

    Type Parameters

    • TAccountTreeAuthority extends InstructionAccountInput = InstructionAccountInput
    • TAccountLeafOwner extends InstructionSignerInput = InstructionSignerInput
    • TAccountLeafDelegate extends InstructionAccountInput = InstructionAccountInput
    • TAccountMerkleTree extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoucher extends InstructionAccountInput = InstructionAccountInput
    • TAccountLogWrapper extends InstructionAccountInput = InstructionAccountInput
    • TAccountCompressionProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    Index
    compressionProgram?: TAccountCompressionProgram

    The SPL/MPL Account Compression program that owns and manages the Merkle tree.

    leafDelegate: TAccountLeafDelegate

    Delegate authority for the leaf; defaults to the leaf owner when no delegate is set.

    Owner of the compressed NFT leaf being operated on.

    logWrapper?: TAccountLogWrapper

    The SPL/MPL Noop program, used to log leaf data so off-chain indexers can reconstruct the tree.

    merkleTree: TAccountMerkleTree

    The concurrent Merkle tree account storing the compressed leaves, owned by the account compression program.

    systemProgram?: TAccountSystemProgram

    The Solana System program.

    treeAuthority?: TAccountTreeAuthority

    The tree's TreeConfig PDA, which stores its configuration and acts as the tree's authority for CPIs into the compression program.

    Voucher PDA created by this instruction to record the redeemed leaf's data until it is decompressed or the redeem is cancelled.