@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Function createRemoveMetadataKeyInstruction

    • Create instruction for removing a metadata key from a light mint.

      Output queue is automatically derived from mintInterface.merkleContext.treeInfo (preferring nextTreeInfo.queue if available for rollover support).

      Parameters

      • mintInterface: MintInterface

        MintInterface from getMintInterface() - must have merkleContext and tokenMetadata

      • authority: PublicKey

        Metadata update authority public key (must sign)

      • payer: PublicKey

        Fee payer public key

      • validityProof: ValidityProofWithContext | null

        Validity proof for the light mint (null for decompressed light mints)

      • key: string

        Metadata key to remove

      • idempotent: boolean = false

        If true, don't error if key doesn't exist (default: false)

      • extensionIndex: number = 0

        Extension index (default: 0)

      • OptionalmaxTopUp: number

        Optional cap on rent top-up (units of 1k lamports; default no cap)

      Returns TransactionInstruction