ERC-20 allowance on Ethereum
onchaincheck.dev/eth/allowance
ERC-20 allowance on Ethereum: how much a spender may transfer from an owner, whether the approval is effectively unlimited, the owner's balance, and the amount the spender could move right now. Errors return 4xx/5xx JSON and aren't charged.
GET
https://onchaincheck.dev/eth/allowanceUptime100% 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://onchaincheck.dev/eth/allowance?owner=0x72aB1B98b60a9251Cc00ab1C3bBe9F48CdFdCA40&spender=0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE&token=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48");
console.log(await res.json());Example input
{
"owner": "0x72aB1B98b60a9251Cc00ab1C3bBe9F48CdFdCA40",
"spender": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}