x402-tools-production-2755.up.railway.app/tools/gas
Use before sending an EVM transaction to pick the cheapest chain and set its fees. Live gas on Ethereum, Base, Arbitrum, Optimism, Polygon and BSC: slow/standard/fast EIP-1559 fee tiers (priority fee, maxFee) from recent blocks, plus the USD cost of a transfer, ERC-20 transfer and swap per tier, cheapest chain first.
GET
https://x402-tools-production-2755.up.railway.app/tools/gasUptime100% of 2 checks 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-tools-production-2755.up.railway.app/tools/gas?chains=base%2Cethereum");
console.log(await res.json());Example input
{
"chains": "base,ethereum"
}More from x402 toolsProvider status
- x402-tools-production-2755.up.railway.app/tools/dex-priceUse to price tokens by contract address, including long-tail tokens with no CoinGecko listing. Live DEX price, 24h change, volume, liquidity and market cap for up to 30 tokens per call on ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, solana. One flat price per call; not charged if no address has a price.0.002
- x402-tools-production-2755.up.railway.app/tools/domainUse to vet a domain or URL before trusting it, or to check if a name is available. Registry RDAP data (the WHOIS successor) for up to 20 domains per call: registrar, created/expiry dates, age in days, status and transfer lock, nameservers, DNSSEC. Subdomains resolve to their registered domain. One flat price per call.0.002
- x402-tools-production-2755.up.railway.app/tools/qrGenerate QR codes for text, URLs, or Web3 payment requests (EIP-681 / Solana Pay). Supports PNG, SVG, JSON output with dataUri, custom colors, and batching. Flat $0.002 per call.0.002
- x402-tools-production-2755.up.railway.app/tools/statute-lookupUse to check one US statute citation before relying on it. Returns whether the section exists, is in force or repealed, its heading, full text and official source link. 48 states, DC and the US Code. Data: Open US Law v2026.08 (CC BY 4.0). Not legal advice.0.003
- x402-tools-production-2755.up.railway.app/tools/token-priceUse to price a crypto portfolio or watchlist in one call. Market data for up to 50 symbols or 250 CoinGecko ids: price, 1h/24h/7d/30d change, 24h high/low, volume, market cap, rank, FDV, supply, and distance from all-time high/low; optional 7-day sparkline. One flat price per call; not charged if nothing is found.0.002
