store.agentexchange.work/chain/allowance
How much of an ERC-20 token a spender is approved to move from an owner's wallet, via allowance, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The approval read every DeFi, swap and trading agent makes before (and after) a transaction to know if an approve is needed. Live public RPC; one paid call.
GET
https://store.agentexchange.work/chain/allowanceUptime100% of 3 checks 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://store.agentexchange.work/chain/allowance?chain=base&owner=0xc91ce6291edc0713ec753bafba002506ffb2b95c&spender=0x000000000022d473030f116ddee9f6b43ac78ba3&token=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913");
console.log(await res.json());Example input
{
"chain": "base",
"owner": "0xc91ce6291edc0713ec753bafba002506ffb2b95c",
"spender": "0x000000000022d473030f116ddee9f6b43ac78ba3",
"token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
}