Skip to content
Fourohtwo

ERC-20 approval check on Base

kr-x402-mvp.kgy5612.workers.dev/crypto/allowance

ERC-20 approval check on Base: how much can spender move from owner? owner=0x..&spender=0x..[&token=0x.., default USDC][&amount=] -> allowance, unlimited flag, owner balance, exposure (min of allowance and balance), known spender label (Permit2, Uniswap, 1inch, 0x, Odos, Aerodrome), risk class, revoke_recommended + ready approve(spender,0) calldata, can_spend when amount= given. Use before transfe

BaseAnswering
GEThttps://kr-x402-mvp.kgy5612.workers.dev/crypto/allowance

Uptime100% 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://kr-x402-mvp.kgy5612.workers.dev/crypto/allowance?owner=0xe4be4d0bd82d8e68203deff81f79ede0529f2617&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&spender=0x000000000022D473030F116dDEE9F6B43aC78BA3");
console.log(await res.json());

Example input

{
  "owner": "0xe4be4d0bd82d8e68203deff81f79ede0529f2617",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}

More from Crypto Microdata for AgentsProvider status