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

    Function updateMetadataField

    • Update a metadata field on a light-token mint. Works for both compressed and decompressed light mints.

      Parameters

      • rpc: Rpc

        RPC connection

      • payer: Signer

        Fee payer (signer)

      • mint: PublicKey

        Mint address

      • authority: Signer

        Metadata update authority (signer)

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

      • OptionalconfirmOptions: ConfirmOptions

        Optional confirm options

      Returns Promise<string>