$0.001
per call · USD Coin on Base
Base gas oracle / gas price API for AI agents and bots — get the gas price for a transaction on Base in one x402 call. Real-time slow/standard/fast EIP-1559 fee tiers from a live eth_feeHistory call, returned as DROP-IN maxFeePerGas + maxPriorityFeePerGas in wei — plug straight into a viem/ethers transaction, no gwei conversion. Plus base fee, head block, and network fullness. Call it before every Base tx to set a fair fee or wait out congestion.
Endpoint
GET https://gas.apitoll.cloud/v1/base/gas38
Calls / 30d
14
Unique payers / 30d
Sep 9
Last called
exact
Payment scheme
Call this service
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://gas.apitoll.cloud/v1/base/gas", {
method: "GET",
});
const data = await res.json();curl -X GET \
"https://gas.apitoll.cloud/v1/base/gas?blocks=20" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"base_fee_gwei": 0.0042,
"base_fee_wei": "4200000",
"block_number": 16842103,
"network": "base-mainnet",
"stats": {
"blocks_sampled": 20,
"median_fullness_pct": 31.5,
"ts": "2026-05-28T15:42:30.000Z"
},
"tiers": {
"fast": {
"maxFeePerGas": "16300000",
"maxPriorityFeePerGas": "10000000",
"max_fee_gwei": 0.0163,
"max_priority_gwei": 0.01
},
"slow": {
"maxFeePerGas": "8300000",
"maxPriorityFeePerGas": "2000000",
"max_fee_gwei": 0.0083,
"max_priority_gwei": 0.002
},
"standard": {
"maxFeePerGas": "10300000",
"maxPriorityFeePerGas": "4000000",
"max_fee_gwei": 0.0103,
"max_priority_gwei": 0.004
}
}
}Payment details
0xcc69d619e6053f88a4845066518f465bd06fc96cUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from ApiToll Base Gas Oracle & similar services
Chain · Operations
agents.chain.link
Chainlink For Agents: execute a catalog workflow by workflow name.
Chain · Operations Submit
agents.chain.link
Chainlink For Agents: submit a signed operation payload.
Sniperx · Activities Smarttraders Smartmoney
x402.sniperx.fun
Get SmartMoney trading activities on token (sorted by time descending)