Jump to content
Tareom

News from across crypto

How to revoke Mayan Bridge token approvals on Ethereum

Revoke Mayan Bridge token approvals on Ethereum by setting the spender allowance to zero—here's how.

The Tareom Editors3 min read

How to revoke Mayan Bridge token approvals on Ethereum

To revoke a Mayan Bridge token approval on Ethereum, you submit a new approval transaction that sets the spender’s allowance to zero, then confirm on the token contract that the allowance reads zero. Revocation works because it changes the recorded spending permission on the token’s contract, not because you ask the bridge to forget you.

An ERC-20 allowance is a permission you grant to a spender address to move a specific token on your behalf. When you approve a bridge, the spender is the bridge’s contract. Many bridges request an unlimited amount, so the allowance stays active long after your transfer is done. The ERC-20 standard (EIP-20) defines the approve and allowance functions that create and read this permission.

Think of an allowance as a standing instruction to the token contract: “this address may move my tokens.” It is like giving someone a signed blank check. Revoking is cancelling the check, not asking the bank to forget you wrote it. The cancellation stops future spending but does not refund past transfers.

The approval transaction targets the token contract, and its spender argument identifies exactly who can spend. To revoke, you need the correct token contract and the correct spender address. Do not rely on a bridge label—a bridge may use multiple contracts, and matching the exact addresses is what makes the revocation effective. If you revoke the wrong spender, the actual approval stays active.

Start with the wallet you used and make sure you are on Ethereum. Open your wallet’s activity or the explorer and find the original approval transaction. It will show the token, the spender, and the approved amount. You can also trace your transfer on the Mayan Bridge site. mayanbridge.org shows the transfer trail, so you can identify the exact spender from the route you used.

An unlimited approval is a standing permission. It does not expire after one transfer, so any later compromise of the spender contract puts your tokens at risk. Revoking it closes that gap.

Now that you have the token and spender, follow these steps:

  1. Open an approval manager like Revoke.cash and connect the same wallet to Ethereum. It reads the existing allowances for all your tokens.
  2. Locate the entry that matches the token and spender you recovered. Choose Revoke. The manager prepares a transaction that calls approve(spender, 0) on the token contract.
  3. Review the transaction details. The new allowance must be zero. Pay the Ethereum gas fee and confirm in your wallet. The manager writes the transaction directly to the token contract; you are not giving the manager any permission, only using it to broadcast your signed transaction.
  4. After confirmation, verify the result. On Etherscan, call the token contract’s allowance(owner, spender) method with your address and the spender address. The returned value must be 0.

What revoking an approval does and doesn’t do

Does revoking approvals recover stolen tokens?

No. Revocation prevents the spender from moving more tokens after the zero-approval transaction is mined. It does not reverse transfers that already happened.

Does native ETH need token approval?

No. Native ETH is not an ERC-20 token, so it has no approve or allowance functions. You only revoke approvals for ERC-20 tokens.

If your goal is to make sure a Mayan Bridge approval can no longer spend, choose the path that ends with allowance(owner, spender) returning zero. Start from the transfer on the Mayan Bridge site to get the exact spender, then submit the zero approval through an approval manager. If the allowance already reads zero, there is nothing to revoke.