Revoke Solana Token Approvals & Limit Wallet Exposure
In this article
Every time you connect your Solana wallet to a dApp and approve a token, you may be granting it permission to spend that token indefinitely. If the dApp is malicious or compromised, it can drain your wallet without any further confirmation. Revoking these approvals and limiting your wallet's exposure is a simple, essential security habit. This guide walks you through the process using Solana's native tools and popular wallet interfaces.
What You'll Need
- A Solana wallet (Phantom, Solflare, or similar) with the funds you want to protect.
- Access to the wallet's secret recovery phrase or private key (you'll need to sign transactions).
- A small amount of SOL for transaction fees (each revoke costs a tiny network fee, usually less than 0.00001 SOL).
- Optional: A block explorer like Solscan or Solana Explorer to check your token approvals.
Step-by-Step
- Identify your token approvals. Open your wallet and go to the "Settings" or "Security" section. Most wallets (Phantom, Solflare) have a "Connected Apps" or "Authorized DApps" list. That shows which dApps can see your address, but not necessarily token spending limits. To see actual token approvals (delegated amounts), you need a block explorer or a dedicated revoke tool.
- Use a block explorer to list approvals. Go to Solscan.io and paste your wallet address into the search bar. Click on the "Token Approvals" tab (or "Approvals" in the menu). This lists every token that has an active approval, the spender (the dApp's program), and the amount (often "Unlimited" or a specific number).
- Choose a revoke method. You have two options:
- In-wallet revoke (if supported): Some wallets like Phantom now offer a "Revoke" button directly in the token approval list. If you see it, click it, confirm the transaction, and you're done.
- Third-party revoke tool: Use a reputable revoke service like Revoke.cash (supports Solana) or SolRocket. Connect your wallet, and the tool will show all active approvals. Select the ones you want to revoke (or click "Revoke All") and confirm the transaction(s) in your wallet.
- Confirm the transaction. After clicking revoke, your wallet will prompt you to approve a transaction. Review the details: it should say "Revoke Token Approval" or similar. Confirm it and wait for it to be processed (usually a few seconds). You may need to do this for each token approval.
- Verify the revocation. After the transaction confirms, refresh the Solscan page or the revoke tool. The approval should now show as "Revoked" or no longer appear in the list. Double-check that the spender is no longer listed.
- Limit future exposure. Going forward, be selective about what you approve. When a dApp asks for permission, check the amount: if it says "Unlimited" or a huge number, consider rejecting and using a manual amount if the dApp allows it. Also, disconnect from dApps you no longer use (in your wallet's "Connected Apps" section) to reduce the attack surface.
Common Mistakes
- Only disconnecting from dApps. Disconnecting removes the dApp's ability to see your address, but it does not revoke token spending approvals. You must revoke the token approval separately.
- Revoking everything blindly. If you have active approvals for a service you still use (like a lending protocol or a DEX), revoking may break its functionality. Only revoke what you no longer need.
- Ignoring "Unlimited" approvals. Many dApps request unlimited approval by default. This is convenient but risky. Always question why a dApp needs that much.
- Forgetting about NFT approvals. Some wallets also have NFT approval mechanisms. Check if your wallet or explorer shows those separately, and revoke any you don't need.
- Using a phishing revoke site. Only use well-known tools. Double-check the URL before connecting your wallet.
Tips
- Revoke regularly. Make it a habit to review your approvals every few weeks or after using a new dApp.
- Use a burner wallet for experiments. For new or untrusted dApps, use a separate wallet with only a small amount of SOL and tokens. Keep your main holdings in a "cold" wallet that never connects to dApps.
- Set custom approval amounts. If a dApp lets you choose the approval amount, enter exactly what you need for the transaction (e.g., the amount you're swapping) instead of accepting unlimited.
- Check for revoke-all features. Some tools like Revoke.cash let you revoke all approvals in one batch, saving time and fees.
- Keep your wallet software updated. Wallet updates often include security improvements and better approval management.
Troubleshooting
- Transaction fails or times out. This is usually due to network congestion or insufficient SOL for fees. Wait a few minutes and try again, or increase the fee (priority fee) in your wallet settings.
- Approval still shows after revoke. Refresh the page and wait for the transaction to fully confirm. If it persists, check the transaction on Solscan to ensure it succeeded. If it failed, retry.
- Wallet won't connect to revoke tool. Make sure you're on the correct network (Mainnet). Some tools may have connection issues; try a different browser or clear your cache.
- Revoke tool shows no approvals but you know you approved something. The approval might be for a token that is not listed (e.g., a custom SPL token). Use Solscan and search for the token mint to see if there's an approval.
- You accidentally revoked an approval you still need. Simply re-approve by using the dApp again. It will prompt you to approve the token, and you can set a manual amount this time.
Frequently Asked Questions
What is a token approval on Solana?
A token approval is a permission you grant to a smart contract (dApp) to spend a specific token from your wallet. It's like giving a merchant a blank check; they can take up to the approved amount at any time.
Does revoking an approval cost SOL?
Yes, each revoke transaction requires a small network fee (typically less than 0.00001 SOL). There's no separate charge from the revoke tool itself.
Can I revoke all approvals at once?
Yes, tools like Revoke.cash allow you to select multiple approvals and revoke them in a single transaction, which is more efficient.
Is it safe to use third-party revoke tools?
Only if you use reputable ones. Revoke.cash is widely trusted, but always verify the URL and never enter your seed phrase on any website. The tool only triggers a revoke transaction; it cannot access your funds.
How do I know if a dApp has unlimited approval?
On Solscan, the approval amount will show as "Unlimited" or a very large number (like 115792089237316195423570985008687907853269984665640564039457584007913129639935). That's the max uint256 value.
What's the difference between disconnecting and revoking?
Disconnecting removes the dApp's ability to see your wallet address and sign transactions on your behalf (like a session). Revoking removes the token spending permission. Both are important; disconnecting alone does not revoke token approvals.