Coda by Ian Macalinao
    Preparing search index...

    Type Alias UpdateMetadataAsyncInput<TAccountTreeAuthority, TAccountAuthority, TAccountCollectionMint, TAccountCollectionMetadata, TAccountCollectionAuthorityRecordPda, TAccountLeafOwner, TAccountLeafDelegate, TAccountPayer, TAccountMerkleTree, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>

    type UpdateMetadataAsyncInput<
        TAccountTreeAuthority extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountAuthority extends InstructionSignerInput = InstructionSignerInput,
        TAccountCollectionMint extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCollectionMetadata extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCollectionAuthorityRecordPda extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountLeafOwner extends InstructionAccountInput = InstructionAccountInput,
        TAccountLeafDelegate extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountMerkleTree extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountLogWrapper extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCompressionProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenMetadataProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        authority: TAccountAuthority;
        collectionAuthorityRecordPda?: TAccountCollectionAuthorityRecordPda;
        collectionMetadata?: TAccountCollectionMetadata;
        collectionMint?: TAccountCollectionMint;
        compressionProgram?: TAccountCompressionProgram;
        currentMetadata: UpdateMetadataInstructionDataArgs["currentMetadata"];
        index: UpdateMetadataInstructionDataArgs["index"];
        leafDelegate: TAccountLeafDelegate;
        leafOwner: TAccountLeafOwner;
        logWrapper?: TAccountLogWrapper;
        merkleTree: TAccountMerkleTree;
        nonce: UpdateMetadataInstructionDataArgs["nonce"];
        payer: TAccountPayer;
        root: UpdateMetadataInstructionDataArgs["root"];
        systemProgram?: TAccountSystemProgram;
        tokenMetadataProgram?: TAccountTokenMetadataProgram;
        treeAuthority?: TAccountTreeAuthority;
        updateArgs: UpdateMetadataInstructionDataArgs["updateArgs"];
    }

    Type Parameters

    • TAccountTreeAuthority extends InstructionAccountInput = InstructionAccountInput
    • TAccountAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountCollectionMint extends InstructionAccountInput = InstructionAccountInput
    • TAccountCollectionMetadata extends InstructionAccountInput = InstructionAccountInput
    • TAccountCollectionAuthorityRecordPda extends InstructionAccountInput = InstructionAccountInput
    • TAccountLeafOwner extends InstructionAccountInput = InstructionAccountInput
    • TAccountLeafDelegate extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountMerkleTree extends InstructionAccountInput = InstructionAccountInput
    • TAccountLogWrapper extends InstructionAccountInput = InstructionAccountInput
    • TAccountCompressionProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenMetadataProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    Index

    Either the collection authority or the tree owner/delegate, depending on whether the asset is in a verified collection.

    collectionAuthorityRecordPda?: TAccountCollectionAuthorityRecordPda

    Delegated collection authority record PDA. Pass the Bubblegum program id if collectionAuthority is the collection's direct update authority rather than a delegate.

    collectionMetadata?: TAccountCollectionMetadata

    Used when the asset is in a verified collection.

    collectionMint?: TAccountCollectionMint

    Used when the asset is in a verified collection.

    compressionProgram?: TAccountCompressionProgram

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

    leafDelegate: TAccountLeafDelegate

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

    Owner of the compressed NFT leaf being operated on.

    logWrapper?: TAccountLogWrapper

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

    merkleTree: TAccountMerkleTree

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

    Account that pays for the transaction and any account rent.

    systemProgram?: TAccountSystemProgram

    The Solana System program.

    tokenMetadataProgram?: TAccountTokenMetadataProgram

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

    treeAuthority?: TAccountTreeAuthority

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