Contract read on Arc
apexfaucet.xyz/api/x402/arc-read
Contract read on Arc: one view call on any contract, decoded, with block and time. ?address=0x...&fn=function balanceOf(address) view returns (uint256)&args=["0x..."] (args a JSON array, optional; &block=N for a past block). For agents that check owner, paused, allowance or a balance before acting, without running an RPC. Only view/pure functions; a revert, a non-contract or a bad signature is ref
GET
https://apexfaucet.xyz/api/x402/arc-readUptime100% 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-read?fn=function+symbol%28%29+view+returns+%28string%29&address=0x59933F316417C89d9dC5107B30f08C99b774Ea9D");
console.log(await res.json());Example input
{
"fn": "function symbol() view returns (string)",
"address": "0x59933F316417C89d9dC5107B30f08C99b774Ea9D"
}