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

    Function createUpdateMetadataFieldInstruction

    • Create instruction for updating a light mint's metadata field.

      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)

      • fieldType: "symbol" | "name" | "uri" | "custom"

        Field to update: 'name', 'symbol', 'uri', or 'custom'

      • value: string

        New value for the field

      • OptionalcustomKey: string

        Custom key name (required if fieldType is 'custom')

      • extensionIndex: number = 0

        Extension index (default: 0)

      • OptionalmaxTopUp: number

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

      Returns TransactionInstruction