
SolDevHub
SolDevHubPermanently remove mint or freeze control from a token.
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.
// Revoke Mint Authority const ixRevokeMint = createSetAuthorityInstruction( mint.publicKey, publicKey, AuthorityType.MintTokens, null, ); // Revoke Freeze Authority const ixRevokeFreeze = createSetAuthorityInstruction( mint.publicKey, publicKey, AuthorityType.FreezeAccount, null, );
Controls whether new tokens can be minted. If revoked, supply becomes permanently fixed.
Controls whether token accounts can be frozen. Revoking removes control over user balances.
createSetAuthorityInstruction is used to change authority. Passing null removes the authority completely.
Once authority is revoked, it cannot be restored. This is a permanent on-chain change.