|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
代币批准是您在使用以太坊和其他类似区块链时经常遇到的常见交易类型。代币批准允许去中心化应用程序从您的钱包中转移特定类型的代币。

When using Ethereum or other blockchain networks, multiple smart contracts will likely have your approval to spend tokens from your wallet.
当使用以太坊或其他区块链网络时,多个智能合约可能会得到您的批准来使用您钱包中的代币。
While this is usually not a cause for concern, it's advisable to periodically check your smart contract approvals and revoke any that you no longer need or find suspicious.
虽然这通常不必担心,但建议定期检查您的智能合约批准并撤销您不再需要或发现可疑的任何批准。
In this article, we will guide you through the process of checking and revoking token and smart contract approvals on MetaMask, and also highlight some alternative methods for revoking approvals.
在本文中,我们将指导您完成在 MetaMask 上检查和撤销代币和智能合约批准的过程,并重点介绍一些撤销批准的替代方法。
Understanding token & smart contract approvals
了解代币和智能合约批准
A token approval is a common transaction type that you will frequently encounter when using Ethereum and other similar blockchains. A token approval essentially allows a decentralized application to move a specific type of token from your wallet.
代币批准是您在使用以太坊和其他类似区块链时经常遇到的常见交易类型。代币批准本质上允许去中心化应用程序从您的钱包中转移特定类型的代币。
For example, if you want to use a decentralized exchange like Uniswap, you will be required to approve Uniswap's smart contract and give it the ability to take tokens from your wallet in order to execute trades.
例如,如果您想使用像 Uniswap 这样的去中心化交易所,您将需要批准 Uniswap 的智能合约,并赋予它从您的钱包中获取代币以执行交易的能力。
It's important to keep in mind that a token approval is an on-chain transaction and therefore requires a gas fee to be paid. Revoking a token approval is also an on-chain transaction and also requires a fee.
重要的是要记住,代币批准是链上交易,因此需要支付汽油费。撤销代币批准也是链上交易,也需要费用。
When confirming a token approval, you will have the ability to specify a spending cap, which is the limit of how many tokens the DApp can access before it has to ask for your approval again.
当确认代币批准时,您将能够指定支出上限,这是 DApp 在再次请求您批准之前可以访问的代币数量的限制。
Signing smart contract permissions is a necessary step for interacting with many types of decentralized applications, but comes with serious risks. If you give approval to a malicious smart contract, it could steal tokens from your wallet.
签署智能合约权限是与多种类型的去中心化应用程序交互的必要步骤,但也伴随着严重的风险。如果您批准恶意智能合约,它可能会从您的钱包中窃取代币。
It's very important to note that there is a difference between revoking a smart contract / token approval and disconnecting your wallet from a DApp. If you want to remove a decentralized application's ability to access your tokens, you need to revoke its approval - simply disconnecting your wallet from the DApp is not enough.
需要注意的是,撤销智能合约/代币批准和断开钱包与 DApp 的连接是有区别的。如果您想删除去中心化应用程序访问您的代币的能力,您需要撤销其批准 - 简单地断开您的钱包与 DApp 的连接是不够的。
Periodically checking your smart contract or token approvals is a good practice - you can revoke approvals for smart contracts you no longer intend to use or don't trust anymore.
定期检查您的智能合约或代币批准是一个很好的做法 - 您可以撤销对不再打算使用或不再信任的智能合约的批准。
How to revoke permissions on MetaMask?
如何撤销 MetaMask 的权限?
We'll show you how you can easily revoke smart contract or token permissions using the MetaMask Portfolio feature.
我们将向您展示如何使用 MetaMask Portfolio 功能轻松撤销智能合约或代币权限。
Let's start off by going to the MetaMask Portfolio app and connecting our wallet. In the "Overview" section, you should be able to see the token balances of the accounts you have connected.
让我们首先访问 MetaMask Portfolio 应用程序并连接我们的钱包。在“概述”部分,您应该能够看到已连接帐户的代币余额。
Then, head over to the "Spending Caps" tab. As we can see, we have approved two smart contracts to spend tokens from our wallet. One is related to the decentralized exchange aggregator 1inch, while the other is related to the dYdX decentralized trading platform.
然后,转到“支出上限”选项卡。正如我们所看到的,我们已经批准了两个智能合约来使用我们钱包中的代币。一个与去中心化交易所聚合器 1inch 有关,另一个与 dYdX 去中心化交易平台有关。
Let's say that we want to revoke the approval of the dYdX smart contract. Click the "Revoke" button next to the contract you wish to revoke.
假设我们要撤销 dYdX 智能合约的批准。单击您要撤销的合同旁边的“撤销”按钮。
Then, approve the transaction to revoke the permission. Please keep in mind that revoking a token or smart contract approval is an on-chain transaction and you will need to pay a gas fee to do it.
然后,批准交易以撤销权限。请记住,撤销代币或智能合约批准是一项链上交易,您需要支付汽油费才能执行此操作。
Other methods of revoking smart contract / token permissions
其他撤销智能合约/代币权限的方法
There are also multiple other ways of revoking smart contract or token permissions that you might find more useful than MetaMask portfolio. We'll show you how you can revoke permissions using a block explorer or the revoke.cash website.
还有多种撤销智能合约或代币权限的其他方法,您可能会发现它们比 MetaMask 组合更有用。我们将向您展示如何使用区块浏览器或 revoke.cash 网站撤销权限。
Use a block explorer such as Etherscan or BscScan
使用区块浏览器,例如 Etherscan 或 BscScan
The Etherscan block explorer has a very handy feature that allows you to check your existing approvals and revoke them if you wish to do so.
Etherscan 区块浏览器有一个非常方便的功能,允许您检查现有的批准并撤销它们(如果您愿意)。
First, head over to Etherscan's token approval tool. Then, click "Connect to Web3" to connect your wallet. We'll be using our MetaMask wallet in this example.
首先,前往 Etherscan 的代币审批工具。然后,单击“连接到Web3”以连接您的钱包。在此示例中,我们将使用 MetaMask 钱包。
Then, Etherscan will display your existing token approvals. You can sort the list by ERC-20, ERC-721 and ERC-1155 token approvals.
然后,Etherscan 将显示您现有的代币批准情况。您可以按 ERC-20、ERC-721 和 ERC-1155 代币批准对列表进行排序。
In order to revoke an approval, simply click "Revoke" next to the approval you want to revoke. Then, your MetaMask browser extension will pop up with a screen where you will be able to sign the transaction. Keep in mind that you will have to pay a gas fee if you want to revoke a token approval.
要撤销批准,只需单击要撤销的批准旁边的“撤销”即可。然后,您的 MetaMask 浏览器扩展将弹出一个屏幕,您可以在其中签署交易。请记住,如果您想撤销代币批准,则必须支付汽油费。
Use revoke.cash
使用撤销.cash
Another popular way to revoke token / smart contract approvals is revoke.cash. Go to the revoke.cash website and connect your wallet. The platform supports a wide range of wallets, including MetaMask.
撤销代币/智能合约批准的另一种流行方式是 revoke.cash。访问 revoke.cash 网站并连接您的钱包。该平台支持多种钱包,包括 MetaMask。
Click "Revoke" next to the approval you wish to revoke, and your MetaMask wallet will pop up with the option to approve the transaction. Then, you can revoke the contract through MetaMask.
点击您想要撤销的批准旁边的“撤销”,您的 MetaMask 钱包将弹出批准交易的选项。然后,您可以通过MetaMask撤销合约。
A handy feature of revoke.cash is that it will show you how old each of your token approvals is. This is a good way to quickly find token approvals that you don't use anymore and therefore might want to revoke.
revoke.cash 的一个方便功能是它会向您显示每个代币批准的时间。这是快速查找您不再使用并因此可能想要撤销的令牌批准的好方法。
Revoke.cash will also tell
Revoke.cash 也会告诉
免责声明:info@kdj.com
所提供的信息并非交易建议。根据本文提供的信息进行的任何投资,kdj.com不承担任何责任。加密货币具有高波动性,强烈建议您深入研究后,谨慎投资!
如您认为本网站上使用的内容侵犯了您的版权,请立即联系我们(info@kdj.com),我们将及时删除。
-
-
-
-
-
- 亿万富翁的强烈反对:SEC 提案引发直言不讳的回应和市场讨论
- 2026-10-13 03:55:01
- 分析美国证券交易委员会开放私人市场的举措、亿万富翁的敏锐洞察力以及不断变化的投资格局。
-
-
-
-
































