Skip to content
Fourohtwo

Gas price API

x402-seller-m8nx.onrender.com/gas-price

Gas price API: current gas on Base, Ethereum, Arbitrum, Optimism or Polygon in gwei, slow/normal/fast priority fees, and what a transfer, ERC-20 transfer or DEX swap costs in USD right now. Call before sending a transaction. $0.001, no API key.

BasePolygonArbitrumAnswering
GEThttps://x402-seller-m8nx.onrender.com/gas-price

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

// 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://x402-seller-m8nx.onrender.com/gas-price?chain=base");
console.log(await res.json());

Example input

{
  "chain": "base"
}

More from x402-sellerProvider status