Should I send my transaction on Base now or wait
base-gas-x402-production.up.railway.app/gas/advice
Should I send my transaction on Base now or wait? Send-now or wait answer with the USD cost and ready-to-sign fees.
GET
https://base-gas-x402-production.up.railway.app/gas/adviceUptime100% 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://base-gas-x402-production.up.railway.app/gas/advice?gasLimit=21000");
console.log(await res.json());Example input
{
"gasLimit": 21000
}More from base-gas-x402Provider status
- base-gas-x402-production.up.railway.app/gasCurrent gas price on Base and what a transaction costs in USD right now: base fee, priority tiers, ready-to-sign maxFeePerGas.0.002
- base-gas-x402-production.up.railway.app/gas/cheapest-windowBest time of day to send a transaction on Base: hours to avoid, cheapest hour (UTC), and what waiting saves in USD.0.02
- base-gas-x402-production.up.railway.app/gas/compareWhat the same transaction costs right now on Base, Optimism, Arbitrum and Ethereum, in USD, cheapest chain first.0.01
- base-gas-x402-production.up.railway.app/gas/historyIs Base gas high or low right now? Up to 7 days of history every 5 min, min/max/avg/median, cheap/normal/expensive verdict.0.01
