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

    Function createUpdateFreezeAuthorityInstruction

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

      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

      • currentFreezeAuthority: PublicKey

        Current freeze authority public key (must sign)

      • newFreezeAuthority: PublicKey | null

        New freeze 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