Coda by Ian Macalinao
    Preparing search index...

    Type Alias ParsedCompressInstruction<TProgram, TAccountMetas>

    type ParsedCompressInstruction<
        TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > = {
        accounts: {
            compressionProgram: TAccountMetas[10];
            leafDelegate: TAccountMetas[2];
            leafOwner: TAccountMetas[1];
            logWrapper: TAccountMetas[9];
            masterEdition: TAccountMetas[7];
            merkleTree: TAccountMetas[3];
            metadata: TAccountMetas[6];
            mint: TAccountMetas[5];
            payer: TAccountMetas[8];
            systemProgram: TAccountMetas[13];
            tokenAccount: TAccountMetas[4];
            tokenMetadataProgram: TAccountMetas[12];
            tokenProgram: TAccountMetas[11];
            treeAuthority: TAccountMetas[0];
        };
        data: CompressInstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

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

    Properties

    accounts: {
        compressionProgram: TAccountMetas[10];
        leafDelegate: TAccountMetas[2];
        leafOwner: TAccountMetas[1];
        logWrapper: TAccountMetas[9];
        masterEdition: TAccountMetas[7];
        merkleTree: TAccountMetas[3];
        metadata: TAccountMetas[6];
        mint: TAccountMetas[5];
        payer: TAccountMetas[8];
        systemProgram: TAccountMetas[13];
        tokenAccount: TAccountMetas[4];
        tokenMetadataProgram: TAccountMetas[12];
        tokenProgram: TAccountMetas[11];
        treeAuthority: TAccountMetas[0];
    }

    Type Declaration

    • compressionProgram: TAccountMetas[10]

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

    • leafDelegate: TAccountMetas[2]

      Delegate authority for the leaf; defaults to the leaf owner when no delegate is set.

    • leafOwner: TAccountMetas[1]

      Owner of the compressed NFT leaf being operated on.

    • logWrapper: TAccountMetas[9]

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

    • masterEdition: TAccountMetas[7]

      Master edition account created for the decompressed NFT.

    • merkleTree: TAccountMetas[3]

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

    • metadata: TAccountMetas[6]

      Metadata account created for the decompressed NFT.

    • mint: TAccountMetas[5]

      Mint account of the decompressed NFT, created fresh during decompression.

    • payer: TAccountMetas[8]

      Account that pays for the transaction and any account rent.

    • systemProgram: TAccountMetas[13]

      The Solana System program.

    • tokenAccount: TAccountMetas[4]

      Token account that will hold the decompressed NFT for leafOwner.

    • tokenMetadataProgram: TAccountMetas[12]

      The Token Metadata program, invoked to read or (un)verify the legacy collection accounts.

    • tokenProgram: TAccountMetas[11]

      The SPL Token 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>