SolDevHub

Revoke Authority

Permanently remove mint or freeze control from a token.

Overview

Tokens on Solana have two important authorities:
Mint Authority — allows creating new tokens
Freeze Authority — allows freezing token accounts

Revoking these makes the token immutable and increases trust.

Code

// Revoke Mint Authority
const ixRevokeMint = createSetAuthorityInstruction(
  mint.publicKey,
  publicKey,
  AuthorityType.MintTokens,
  null,
);

// Revoke Freeze Authority
const ixRevokeFreeze = createSetAuthorityInstruction(
  mint.publicKey,
  publicKey,
  AuthorityType.FreezeAccount,
  null,
);

1. Mint Authority

Controls whether new tokens can be minted. If revoked, supply becomes permanently fixed.

2. Freeze Authority

Controls whether token accounts can be frozen. Revoking removes control over user balances.

3. Set Authority Instruction

createSetAuthorityInstruction is used to change authority. Passing null removes the authority completely.

4. Irreversible Action

Once authority is revoked, it cannot be restored. This is a permanent on-chain change.

Revoking authority is permanent. You will not be able to mint new tokens or freeze accounts after this.