B
$0.005
per call · USD Coin on Base
Live Base mainnet gas: EIP-1559 base fee, low/medium/high priority tiers in gwei, and a transaction cost estimate for any gas limit.
Endpoint
GET https://base-gas-x402-production.up.railway.app/gas709
Calls / 30d
7
Unique payers / 30d
Sep 10
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://base-gas-x402-production.up.railway.app/gas", {
method: "GET",
});
const data = await res.json();cURL
curl -X GET \
"https://base-gas-x402-production.up.railway.app/gas?gasLimit=21000" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"baseFeePerGas": "0.012",
"blockNumber": "12345678",
"chain": "base-mainnet",
"chainId": 8453,
"estimatedTransferCost": {
"eth": "0.000000294",
"gasLimit": 21000,
"gwei": "294"
},
"fetchedAt": "2026-06-22T00:00:00.000Z",
"gasPrice": "0.014",
"priorityFeePerGas": {
"high": "0.004",
"low": "0.001",
"medium": "0.002"
}
}Payment details
Pay to
0x0d083590c048a243e24a75e3a7c968145de25b44Asset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase
Schemesexact
Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from base-gas-x402 & similar services
B
base-gas-x402 · GAS Compare
base-gas-x402-production.up.railway.app
Live gas cost comparison across Base, OP Mainnet, Arbitrum One, and Ethereum in one call, ranked cheapest first.
GETBaseOnchain Data
$0.01 / call6 calls / 30d
B
base-gas-x402 · GAS Cheapest Window
base-gas-x402-production.up.railway.app
Cheapest hours of day to transact on Base, from collected gas history: hourly averages in UTC ranked cheapest first, plus the savings percent.
GETBaseOnchain Data
$0.02 / call2 calls / 30d
C
Chain · Operations
agents.chain.link
Chainlink For Agents: execute a catalog workflow by workflow name.
POSTBaseOnchain Data
$0.01 / call39k calls / 30d