Coda by Ian Macalinao
    Preparing search index...

    Type Alias ParsedMintToCollectionV1Instruction<TProgram, TAccountMetas>

    type ParsedMintToCollectionV1Instruction<
        TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > = {
        accounts: {
            bubblegumSigner: TAccountMetas[11];
            collectionAuthority: TAccountMetas[6];
            collectionAuthorityRecordPda: TAccountMetas[7];
            collectionMetadata: TAccountMetas[9];
            collectionMint: TAccountMetas[8];
            compressionProgram: TAccountMetas[13];
            editionAccount: TAccountMetas[10];
            leafDelegate: TAccountMetas[2];
            leafOwner: TAccountMetas[1];
            logWrapper: TAccountMetas[12];
            merkleTree: TAccountMetas[3];
            payer: TAccountMetas[4];
            systemProgram: TAccountMetas[15];
            tokenMetadataProgram: TAccountMetas[14];
            treeAuthority: TAccountMetas[0];
            treeDelegate: TAccountMetas[5];
        };
        data: MintToCollectionV1InstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

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

    Properties

    accounts: {
        bubblegumSigner: TAccountMetas[11];
        collectionAuthority: TAccountMetas[6];
        collectionAuthorityRecordPda: TAccountMetas[7];
        collectionMetadata: TAccountMetas[9];
        collectionMint: TAccountMetas[8];
        compressionProgram: TAccountMetas[13];
        editionAccount: TAccountMetas[10];
        leafDelegate: TAccountMetas[2];
        leafOwner: TAccountMetas[1];
        logWrapper: TAccountMetas[12];
        merkleTree: TAccountMetas[3];
        payer: TAccountMetas[4];
        systemProgram: TAccountMetas[15];
        tokenMetadataProgram: TAccountMetas[14];
        treeAuthority: TAccountMetas[0];
        treeDelegate: TAccountMetas[5];
    }

    Type Declaration

    • bubblegumSigner: TAccountMetas[11]

      PDA Bubblegum uses to sign the CPI into the Token Metadata program that (un)verifies the collection.

    • collectionAuthority: TAccountMetas[6]

      Authority of the collection the asset is being added to or removed from (typically the collection's update authority or a delegate).

    • collectionAuthorityRecordPda: TAccountMetas[7]

      If there is no collection authority record PDA, pass the Bubblegum program address instead.

    • collectionMetadata: TAccountMetas[9]

      Metadata account of the Token Metadata collection NFT.

    • collectionMint: TAccountMetas[8]

      Mint account of the Token Metadata collection NFT.

    • compressionProgram: TAccountMetas[13]

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

    • editionAccount: TAccountMetas[10]

      Master edition account of the Token Metadata collection NFT.

    • 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[12]

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

    • merkleTree: TAccountMetas[3]

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

    • payer: TAccountMetas[4]

      Account that pays for the transaction and any account rent.

    • systemProgram: TAccountMetas[15]

      The Solana System program.

    • tokenMetadataProgram: TAccountMetas[14]

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

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

    • treeDelegate: TAccountMetas[5]

      Delegate authority of the tree, authorized to mint into and manage the tree on the creator's behalf.

    programAddress: Address<TProgram>