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

    Function createUpdateMintAuthorityInstruction

    • Create instruction for updating a light mint's mint authority. Works for both compressed and decompressed light mints.

      Parameters

      • mintInterface: MintInterface

        MintInterface from getMintInterface() - must have merkleContext

      • currentMintAuthority: PublicKey

        Current mint authority public key (must sign)

      • newMintAuthority: PublicKey | null

        New mint authority (or null to revoke)

      • payer: PublicKey

        Fee payer public key

      • validityProof: ValidityProofWithContext | null

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

      • OptionalmaxTopUp: number

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

      Returns TransactionInstruction