Base gas price now
apexfaucet.xyz/api/x402/base-gas
Base gas price now: what an ETH transfer, a USDC transfer and a Uniswap swap cost in USD, L1 fee included. What a transaction on Base costs right now, in dollars, including the L1 data fee most gas trackers leave out. Read from real receipts in the latest Base blocks: the median a plain ETH transfer, a USDC transfer and a Uniswap swap actually paid (L2 fee + L1 fee), what the same gas costs at the
GET
https://apexfaucet.xyz/api/x402/base-gasUptime100% 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://apexfaucet.xyz/api/x402/base-gas");
console.log(await res.json());