Build the UNSIGNED plan to revoke token approvals
emc2ai.io/x402/plan/revoke
Build the UNSIGNED plan to revoke token approvals: ERC20 approve(spender, 0), Uniswap Permit2 approve(token, spender, 0, 0) and NFT setApprovalForAll(operator, false). Params { chain, wallet, approvals: [{ type: erc20|permit2|nft, token, spender }] (max 25) } — e.g. the list from approval-security-scan. Every approval is verified live on-chain first; already-zero ones are skipped. Never geo-gated.
POST
https://emc2ai.io/x402/plan/revokeUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://emc2ai.io/x402/plan/revoke", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}),
});
console.log(await res.json());Example input
{}