Skip to content
Fourohtwo

app-00c89dcdfe54831bf106.x402-hosting.com/v1/base/approvals

Current on-chain approvals on Base for one holder and up to 10 named token contracts and 10 named spenders/operators: ERC-20 allowance(holder, spender), ERC-721/1155 isApprovedForAll(holder, operator), and getApproved(tokenId) when a tokenId is given. Unlimited allowances are flagged isMaxUint256. Raw values only; not a complete approval graph and not a risk rating. Includes blockNumber, blockHash

BaseAnswering
GEThttps://app-00c89dcdfe54831bf106.x402-hosting.com/v1/base/approvals

Uptime100% 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

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://app-00c89dcdfe54831bf106.x402-hosting.com/v1/base/approvals?tokens=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&address=0x317ba8B2860D4606AC389Fb8094AF6dCF5b87987&spenders=0x317ba8B2860D4606AC389Fb8094AF6dCF5b87987");
console.log(await res.json());

Example input

{
  "tokens": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "address": "0x317ba8B2860D4606AC389Fb8094AF6dCF5b87987",
  "spenders": "0x317ba8B2860D4606AC389Fb8094AF6dCF5b87987"
}