Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateTreeV2AsyncInput<TAccountTreeAuthority, TAccountMerkleTree, TAccountPayer, TAccountTreeCreator, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>

    type CreateTreeV2AsyncInput<
        TAccountTreeAuthority extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountMerkleTree extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountTreeCreator extends InstructionSignerInput = InstructionSignerInput,
        TAccountLogWrapper extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCompressionProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        compressionProgram?: TAccountCompressionProgram;
        logWrapper?: TAccountLogWrapper;
        maxBufferSize: CreateTreeV2InstructionDataArgs["maxBufferSize"];
        maxDepth: CreateTreeV2InstructionDataArgs["maxDepth"];
        merkleTree: TAccountMerkleTree;
        payer: TAccountPayer;
        public: CreateTreeV2InstructionDataArgs["public"];
        systemProgram?: TAccountSystemProgram;
        treeAuthority?: TAccountTreeAuthority;
        treeCreator?: TAccountTreeCreator;
    }

    Type Parameters

    • TAccountTreeAuthority extends InstructionAccountInput = InstructionAccountInput
    • TAccountMerkleTree extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountTreeCreator extends InstructionSignerInput = InstructionSignerInput
    • 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.

    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.

    Account that pays for the transaction and any account rent.

    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.

    treeCreator?: TAccountTreeCreator

    Optional tree creator, defaults to payer.