ERC-20 token approval check
agent-data-tools.revmesh2074.workers.dev/base-allowance
ERC-20 token approval check. Check how much of a wallet's ERC-20 token a spender contract is approved to move on Base: the raw and formatted allowance, the token symbol and decimals, and whether the approval is unlimited. Use before a swap or deposit to see if an approve transaction is needed, and to audit a wallet for risky unlimited approvals.
GET
https://agent-data-tools.revmesh2074.workers.dev/base-allowanceUptimeNot checked yet
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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/base-allowance?owner=0x4200000000000000000000000000000000000006&spender=0x000000000022D473030F116dDEE9F6B43aC78BA3&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
console.log(await res.json());Example input
{
"owner": "0x4200000000000000000000000000000000000006",
"spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}