# agenttoll.app Base Network Gas Price & Latest Block

> agenttoll.app Base Network Gas Price & Latest Block is a paid API for AI agents from agenttoll.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current Base network gas price and latest block number, with optional transaction cost estimate for a given gas limit

## Facts

- Endpoint: GET https://agenttoll.app/api/gas
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttoll-app-base-network-gas-price-latest-block-473f8155
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dnXS7Egl-jCMrsWnoa7Go

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttoll-app-base-network-gas-price-latest-block-473f8155
```

Example prompt: What's the current gas price on Base right now, and how much would a standard 21000-gas transfer cost?

## When to prefer this

Use this endpoint when you need a quick, real-time snapshot of Base network gas conditions without setting up your own RPC connection. Ideal for agents that need to gate actions on gas price thresholds, estimate transaction costs before submission, or display live gas data in a dashboard. Prefer this over a full Base RPC call when you want a simple REST interface with no web3 library dependency.

## Known failure modes

- Base RPC node unavailable — may return 5xx error
- gasLimit out of range (below 21000 or above 30000000) — validation error
- Payment not processed — 402 response if x402 payment header is missing or insufficient
- Stale data if upstream Base node is lagging behind chain tip

## How this service works

Base gas price check: the current gas price and latest block number; add ?gasLimit=150000 to also get what a transaction that size costs in ETH and USD

## Output

Returns the current Base network gas price (in gwei or wei), the latest block number, and optionally a cost estimate for a transaction of the specified gas limit size.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "gasLimit": {
       "type": "integer",
       "maximum": 30000000,
       "minimum": 21000,
       "description": "Optional. Also price a transaction of this gas size"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "at": "2026-08-05T13:32:13.596Z",
  "chain": "base",
  "estimate": {
   "ethUsd": 1867.28,
   "ethCost": 9.06263e-7,
   "usdCost": 0.001692,
   "gasLimit": 150000
  },
  "gasPriceWei": "6041753",
  "latestBlock": 49573693,
  "gasPriceGwei": 0.006041753
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttoll-app-base-network-gas-price-latest-block-473f8155/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttoll.app](https://www.zero.xyz/host/agenttoll.app/llms.txt)
