Skip to content
Fourohtwo

Allowance check on Arc, before an app asks for an approval

apexfaucet.xyz/api/x402/arc-allowance

Allowance check on Arc, before an app asks for an approval: what owner has already approved to spender for a token (default USDC; add &token=0x... for another), in tokens and USD, whether it is unlimited, the owner's balance, whether the spender is a contract and its name if it is one our own code uses on Arc (Uniswap v4 PoolManager, UniversalRouter, Permit2, Circle Gateway Wallet, CCTP TokenMesse

BaseArcSolanaBNB ChainRobinhood ChainAnswering
GEThttps://apexfaucet.xyz/api/x402/arc-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

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://apexfaucet.xyz/api/x402/arc-allowance?owner=0x024b82335C29Fa5606a8ea5c1D24FC9eAD50700C&spender=0x000000000022D473030F116dDEE9F6B43aC78BA3");
console.log(await res.json());

Example input

{
  "owner": "0x024b82335C29Fa5606a8ea5c1D24FC9eAD50700C",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}