Skip to content
Fourohtwo

ERC-20 allowance an owner has granted a spender

chain-data-api.agentlogic.workers.dev/allowance

ERC-20 allowance an owner has granted a spender: raw value and the decimals-applied amount, plus an unlimited flag when the allowance is at or near max uint256. The approval check an agent runs before transacting.

BaseAnswering
GEThttps://chain-data-api.agentlogic.workers.dev/allowance

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

// 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://chain-data-api.agentlogic.workers.dev/allowance?chain=base&owner=0x0000000000000000000000000000000000000000&spender=0x0000000000000000000000000000000000000000&token=0x833589fcd6edb6e08f4c7C32D4f71b54bda02913");
console.log(await res.json());

Example input

{
  "chain": "base",
  "owner": "0x0000000000000000000000000000000000000000",
  "spender": "0x0000000000000000000000000000000000000000",
  "token": "0x833589fcd6edb6e08f4c7C32D4f71b54bda02913"
}

More from Chain Data APIProvider status