起源学习站链上学习学院 › Level 2 钱包与安全 › 如何撤销授权ORIGIN LearnOn-chain Academy › Level 2 Wallet & Security › How to revoke approvals
🔐 Level 2 · 钱包与安全🔐 Level 2 · Wallet & Security

如何撤销授权How to revoke approvals

6 分钟6 min
学习目标:学完你能理解撤销授权的意义、掌握查看和撤销已有授权的基本流程,并养成定期清理旧授权、尤其是无限授权的习惯。Learning goal: after this lesson you'll understand what revoking an approval means, know the basic process of viewing and revoking existing approvals, and build the habit of regularly cleaning up old approvals — especially unlimited ones.
大白话In plain words撤销授权就是把之前发给某合约的「扣款额度钥匙」收回来。用完的、忘了给谁的钥匙别一直留着,收回来才安心。Revoking an approval means taking back the "spending-allowance key" you once gave a contract. Don't leave keys lying around after you're done with them or when you've forgotten who has them — take them back for peace of mind.

前面讲过,授权=允许某合约动用你钱包里某代币的额度。撤销授权(Revoke),就是主动把这份权限收回,让该合约不再能动你的币。哪怕当初授的是无限额度,撤销后它的权限就归零了,相当于把敞开的后门重新锁上。As covered earlier, an approval = letting a contract spend a certain allowance of one token in your wallet. Revoking an approval means actively taking that permission back so the contract can no longer touch your tokens. Even if you originally granted an unlimited allowance, revoking resets its permission to zero — like re-locking a back door that was left wide open.

什么时候该撤销?When should you revoke?

定期清理,是把「被盗窗口」压到最小的日常功课。Cleaning up regularly is the daily routine that keeps your "window to be robbed" as small as possible.

撤销的一般流程:先用钱包体检工具或授权管理页查看你地址下的授权清单——上面会列出你授权过的代币、对应的合约、额度;找到要收回的那一项,点撤销,钱包会弹出一笔交易请你确认;签名并支付少量gas后,这笔授权即被收回。注意撤销本身是一笔链上交易,需要一点gas费The general process: first use a wallet checkup tool or an approval manager page to view the list of approvals under your address — it shows the tokens you've approved, the corresponding contracts, and the allowances. Find the one you want to take back, click revoke, and your wallet pops up a transaction to confirm; once you sign and pay a little gas, that approval is revoked. Note that revoking is itself an on-chain transaction and costs a bit of gas.

关于工具:像revoke.cash这类公开的授权管理网站可以帮你查看和撤销授权,属于第三方公开工具,请自行核实、自担风险,本站不作背书。使用时同样守住老规矩:只从可信来源进入、核对网址、绝不输入助记词、看清每一笔签名内容。撤销授权是好习惯,但操作过程本身也要防钓鱼。About tools: public approval-manager sites like revoke.cash can help you view and revoke approvals. They are third-party public tools — verify them yourself and use at your own risk; this site does not endorse them. Stick to the same old rules when using them: only enter from a trusted source, check the URL, never enter your seed phrase, and read the content of every signature. Revoking approvals is a good habit, but the process itself still needs phishing protection.

案例Example小刘半年前在某兑换站授了无限额度,之后就没再用那个站。做钱包体检时他看到这条老授权还挂着,便发起撤销,签名付了点gas,权限归零。这样即使那个合约日后出问题,也再动不了他的币了。Six months ago Xiao Liu granted an unlimited allowance on a swap site, then never used it again. During a wallet checkup he saw that old approval still active, so he revoked it, signed and paid a little gas, and its permission dropped to zero. Now even if that contract runs into trouble later, it can no longer touch his tokens.
配套工具(点开在主站打开):Related tools (open on the main site):
🛠 钱包体检 ›🛠 Wallet Checkup ›🛠 代币安全自查 ›🛠 Token Safety ›

📝 本节测验📝 Quiz

1. 撤销授权(Revoke)的作用是?1. What does revoking an approval do?

2. 关于撤销授权的花费,正确的是?2. Regarding the cost of revoking an approval, which is correct?

3. 下面哪种情况最该尽快撤销授权?3. In which case should you revoke an approval most urgently?

4. 使用revoke.cash等第三方授权管理工具时,应抱什么态度?4. What attitude should you take toward third-party approval managers like revoke.cash?

5. 为什么建议定期清理旧授权?5. Why is it recommended to clean up old approvals regularly?

❓ 常见问题❓ FAQ

撤销授权会不会把我的币也一起转走或弄丢?Will revoking an approval move or lose my tokens too?

不会。撤销只收回「可被动用的权限」,你的代币本金一直在自己钱包里不动。它改变的只是别人能不能碰你的币,付出的仅是一点点gas费。No. Revoking only takes back the "permission to spend"; your token principal stays untouched in your own wallet. All it changes is whether others can touch your tokens, and all it costs is a tiny bit of gas.

我授权过很多合约,必须全部撤销吗?I've approved many contracts — do I have to revoke them all?

不必一刀切。正在使用的协议保留即可,重点撤销那些用不到的、陌生的、无限额度的,以及问题项目的授权。按需保留、定期清理,兼顾方便与安全。No need for a blanket approach. Keep the protocols you're actively using, and focus on revoking approvals that are unused, unfamiliar, unlimited, or tied to problematic projects. Keep what you need and clean up regularly — balancing convenience and safety.

撤销之后,以后还想用这个协议怎么办?After revoking, what if I want to use the protocol again later?

再次使用时重新授权一次即可,和第一次一样。为安全起见,重新授权时可以只授本次所需额度,而不是又选无限,用完再撤,形成良性循环。Just approve again next time, the same as the first time. For safety, when re-approving you can grant only the allowance needed this time rather than picking unlimited again, then revoke when you're done — forming a healthy cycle.

‹ 上一课‹ Previous什么是钓鱼网站?What is a phishing site?