Coda by Ian Macalinao
    Preparing search index...

    Type Alias ParsedCloseTreeV2Instruction<TProgram, TAccountMetas>

    type ParsedCloseTreeV2Instruction<
        TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > = {
        accounts: {
            authority: TAccountMetas[1];
            compressionProgram: TAccountMetas[4];
            logWrapper: TAccountMetas[5];
            merkleTree: TAccountMetas[2];
            recipient: TAccountMetas[3];
            systemProgram: TAccountMetas[6];
            treeAuthority: TAccountMetas[0];
        };
        data: CloseTreeV2InstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

    • TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS
    • TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]
    Index

    Properties

    accounts: {
        authority: TAccountMetas[1];
        compressionProgram: TAccountMetas[4];
        logWrapper: TAccountMetas[5];
        merkleTree: TAccountMetas[2];
        recipient: TAccountMetas[3];
        systemProgram: TAccountMetas[6];
        treeAuthority: TAccountMetas[0];
    }

    Type Declaration

    • authority: TAccountMetas[1]

      Tree creator or delegate.

    • compressionProgram: TAccountMetas[4]

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

    • logWrapper: TAccountMetas[5]

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

    • merkleTree: TAccountMetas[2]

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

    • recipient: TAccountMetas[3]

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

    • systemProgram: TAccountMetas[6]

      The Solana System program.

    • treeAuthority: TAccountMetas[0]

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

    programAddress: Address<TProgram>