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

    Function createUpdateMetadataAuthorityInstruction

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

      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

      • currentAuthority: PublicKey

        Current metadata update authority public key (must sign)

      • newAuthority: PublicKey

        New metadata update authority public key

      • payer: PublicKey

        Fee payer public key

      • validityProof: ValidityProofWithContext | null

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

      • extensionIndex: number = 0

        Extension index (default: 0)

      • OptionalmaxTopUp: number

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

      Returns TransactionInstruction