Coda by Ian Macalinao
    Preparing search index...

    Type Alias ParsedCreateTreeInstruction<TProgram, TAccountMetas>

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

    Type Parameters

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

    Properties

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

    Type Declaration

    • compressionProgram: TAccountMetas[5]

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

    • logWrapper: TAccountMetas[4]

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

    • merkleTree: TAccountMetas[1]

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

    • payer: TAccountMetas[2]

      Account that pays for the transaction and any account rent.

    • 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.

    • treeCreator: TAccountMetas[3]

      Creator of the tree, recorded in TreeConfig when the tree was created.

    programAddress: Address<TProgram>