Gas estimate on Base
cdcko-38-190-144-122.free.pinggy.net/gas-estimate
Gas estimate on Base - the current gas price, base fee, priority fee and a transaction cost estimate in USDC (cycle 231, x402 $0.01) - GET ?sample=1|2|3 OR ?tx=<TO_JSON> OR POST application/json {{tx|to|value|data}}. KEYLESS public Base JSON-RPC with 6-endpoint failover - no key, no account, no signup. Returns the gas price in wei and gwei, the base fee, the priority fee, the chain id, the head bl
GET
https://cdcko-38-190-144-122.free.pinggy.net/gas-estimateUptime0.0% 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://cdcko-38-190-144-122.free.pinggy.net/gas-estimate?tx=example&sample=1");
console.log(await res.json());Example input
{
"tx": "example",
"sample": "1"
}