---
name: gas.apitoll.cloud
description: gas.apitoll.cloud provides a single-endpoint snapshot of current EIP-1559 gas fee estimates for Base mainnet. It queries eth_feeHistory RPC data and returns tiered fee recommendations (slow, standard, fast), the current base fee, latest block number, and median block fullness in one call.
host: gas.apitoll.cloud
---

# gas.apitoll.cloud

This host is a narrow, single-purpose utility targeting agents and applications that need on-demand Base L2 gas fee data before submitting transactions. It serves use cases like pre-flight cost estimation, congestion-aware scheduling, and user-facing gas tier suggestions — all scoped exclusively to Base mainnet.

## When to use this host

Use this host when an agent needs current gas fee estimates specifically for Base mainnet prior to submitting a transaction or presenting fee options to a user. Do not use it for Ethereum mainnet, Optimism, Arbitrum, Polygon, or any other EVM chain — those require chain-specific gas APIs. Do not use it for continuous or streaming gas monitoring; it returns a single snapshot per call and is not designed for polling loops or real-time feeds. If you need multi-chain gas data or historical gas trend analysis, look for a broader gas oracle service.

## Capabilities

### Base Gas Fee Estimation

Retrieves a real-time snapshot of EIP-1559 gas tiers and network congestion metrics for Base mainnet, enabling agents to make informed decisions about transaction timing and fee settings.

- **`fetch-base-gas-snapshot`** — Returns real-time EIP-1559 gas tiers (slow/standard/fast), base fee, latest block number, and median block fullness for Base mainnet, sourced from eth_feeHistory RPC.

## Skill reference

### `fetch-base-gas-snapshot`

**Base Gas Price Snapshot** — Returns real-time EIP-1559 gas tiers (slow/standard/fast), base fee, latest block number, and median block fullness for Base mainnet, sourced from eth_feeHistory RPC.

*Use when:* Use when an agent needs current Base mainnet gas fee estimates before submitting a transaction, scheduling a tx based on congestion, suggesting gas tiers to a user, or projecting transaction costs on Base L2.

*Not for:* Do not use for Ethereum mainnet or other EVM chains; use a chain-specific gas API instead. Not suitable for continuous streaming gas feeds — this is a single-shot snapshot.

**Inputs:**

- `blocks` (integer) — Number of recent blocks to sample for percentile reward calculation (1..50, clamped). More blocks = smoother tiers; fewer = more reactive. Defaults to 20.

**Returns:** Returns a JSON object with network='base-mainnet', latest block_number, base_fee_gwei, three fee tiers (slow/standard/fast) each with max_fee_gwei and max_priority_gwei, and stats including blocks_sampled, median_fullness_pct, and timestamp.

**Example:** `GET https://gas.apitoll.cloud/v1/base/gas?blocks=20`

---
