Directory / Crypto & onchain data

ERC20 allowance via allowance (eth_call)

ERC20 allowance via allowance (eth_call) - how much a spender is approved to move from an owner's wallet

402 OKBaseGETx402 v2

Price per call
$0.003
Endpoint
https://api.onesource.io/api/chain/allowance
Provider
api.onesource.io
Paid calls (30 days)
257
Unique payers (30 days)
254
Last paid call
5 days ago
Health check
HTTP 402 4 min ago
Pays to
0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea
Listed here since
2026-11-23 (source: bazaar)

Input

{
  "method": "GET",
  "queryParams": {
    "contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
    "network": "ethereum",
    "owner": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "spender": "0x6b175474e89094c44da98b954eedeac495271d0f"
  },
  "type": "http"
}

Example output

{
  "example": {
    "data": {
      "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
      "decimals": 6,
      "name": "Tether USD",
      "owner": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
      "spender": "0x6b175474e89094c44da98b954eedeac495271d0f",
      "symbol": "USDT",
      "token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
    },
    "meta": {
      "cost_usdc": "0.001",
      "endpoint": "/api/chain/allowance",
      "payment_chain": "base",
      "payment_token": "USDC",
      "request_id": "00000000abcdef01"
    }
  },
  "type": "json"
}

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);

const res = await paidFetch("https://api.onesource.io/api/chain/allowance", { method: "GET" });
console.log(await res.json()); // costs $0.003 in USDC on Base

Machine-readable: /api/tools/3f3adb5ea218. Listings are informational; check a provider before sending large amounts.