Coda by Ian Macalinao
    Preparing search index...

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

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

    Type Parameters

    • TAccountTreeAuthority extends string = string
    • TAccountMerkleTree extends string = string
    • TAccountPayer extends string = string
    • TAccountTreeCreator extends string = string
    • TAccountLogWrapper extends string = string
    • TAccountCompressionProgram extends string = string
    • TAccountSystemProgram extends string = string
    Index

    Properties

    compressionProgram?: Address<TAccountCompressionProgram>

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

    logWrapper?: Address<TAccountLogWrapper>

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

    merkleTree: Address<TAccountMerkleTree>

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

    payer: TransactionSigner<TAccountPayer>

    Account that pays for the transaction and any account rent.

    systemProgram?: Address<TAccountSystemProgram>

    The Solana System program.

    treeAuthority: Address<TAccountTreeAuthority>

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

    treeCreator?: TransactionSigner<TAccountTreeCreator>

    Optional tree creator, defaults to payer.