What a given operation SHOULD cost on Arc right now, in dollars
apexfaucet.xyz/api/x402/arc-cost
What a given operation SHOULD cost on Arc right now, in dollars - a price list computed at the gas price read at this block, and the companion to /api/x402/arc-gas which measures what transactions ACTUALLY cost across a spread of blocks. Use this one to quote an operation, that one to budget for the tail: the 20 gwei floor holds most of the time but is not a cap, and the response says so.
GET
https://apexfaucet.xyz/api/x402/arc-costUptime100% 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-cost");
console.log(await res.json());