Coda by Ian Macalinao
    Preparing search index...

    Type Alias CloseTreeV2Input<TAccountTreeAuthority, TAccountAuthority, TAccountMerkleTree, TAccountRecipient, TAccountCompressionProgram, TAccountLogWrapper, TAccountSystemProgram>

    type CloseTreeV2Input<
        TAccountTreeAuthority extends string = string,
        TAccountAuthority extends string = string,
        TAccountMerkleTree extends string = string,
        TAccountRecipient extends string = string,
        TAccountCompressionProgram extends string = string,
        TAccountLogWrapper extends string = string,
        TAccountSystemProgram extends string = string,
    > = {
        authority: TransactionSigner<TAccountAuthority>;
        compressionProgram?: Address<TAccountCompressionProgram>;
        logWrapper?: Address<TAccountLogWrapper>;
        merkleTree: Address<TAccountMerkleTree>;
        recipient: Address<TAccountRecipient>;
        systemProgram?: Address<TAccountSystemProgram>;
        treeAuthority: Address<TAccountTreeAuthority>;
    }

    Type Parameters

    • TAccountTreeAuthority extends string = string
    • TAccountAuthority extends string = string
    • TAccountMerkleTree extends string = string
    • TAccountRecipient extends string = string
    • TAccountCompressionProgram extends string = string
    • TAccountLogWrapper extends string = string
    • TAccountSystemProgram extends string = string
    Index

    Properties

    authority: TransactionSigner<TAccountAuthority>

    Tree creator or delegate.

    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.

    recipient: Address<TAccountRecipient>

    Recipient for the reclaimed lamports (tree + config PDA). Must be the tree creator or delegate.

    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.