85trust / 100
Base Gas
by ApiToll Base Gas Oracle in Onchain & crypto
x402 APIPassing, checked 3 h ago
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.
GET https://gas.apitoll.cloud/v1/base/gas
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 194 ms typical, 194 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://gas.apitoll.cloud/v1/base/gas?blocks=20"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgas.apitoll.cloud%2Fv1%2Fbase%2Fgas
const res = await pay("https://gas.apitoll.cloud/v1/base/gas?blocks=20");
console.log(await res.json());Example input
{
"blocks": 20
}Example output
{
"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
}
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 194 ms | $0.001 |
| 8 h ago | Passed | 402 | 203 ms | $0.001 |