@lightprotocol/compressed-token - v0.23.3
    Preparing search index...

    Function createLightTokenFreezeAccountInstruction

    • Create an instruction to freeze a decompressed light-token account.

      Freezing sets the account state to AccountState::Frozen, preventing transfers and other token operations. Only the mint's freeze_authority can freeze accounts.

      Account order per program: 0. token_account (mutable) - the light-token account to freeze

      1. mint (readonly) - the mint associated with the token account
      2. freeze_authority - must match mint.freeze_authority (signer)

      Parameters

      • tokenAccount: PublicKey

        The light-token account to freeze (must be Initialized)

      • mint: PublicKey

        The mint of the light-token account

      • freezeAuthority: PublicKey

        The freeze authority of the mint (signer)

      Returns TransactionInstruction

      TransactionInstruction