Revoke approval
Revoke approval

Ethereum Virtual Machine · Acts onchain

Sets a spender's ERC-20 allowance from the socket back to zero. The token's approve is called with zero for the spender; the options list only spenders with outstanding approvals on the chosen token. Reach for it to close an allowance a strategy opened earlier in the same transaction, or in a cleanup plug that removes standing approvals from contracts no longer in use.

Revoke Spending Budget

plug
evm
5actions
  1. 1·Take

    The token parameter is declared here, supplied by the caller at execution to name which ERC-20 asset this run inspects and revokes.

  2. 2·Take

    Following that, spender is declared as a caller parameter naming the address whose allowance will be checked and cleared.

  3. 3·Get token allowance

    Reading Your Wallet's allowance to the spender for the token captures how much the spender may still pull before the revoke lands.

  4. 4·Bubble

    That measured allowance is surfaced as an output of this plug, handing the standing allowance back to the caller.

  5. 5·Revoke approval

    Finally, the spender's allowance for the token is set back to zero, cancelling the spender's ability to transfer from the socket.

Take
Take
Get allowance to for
Bubble
Revoke approval to spend from
  • Revoke Spending Budget

    plug
    evm