# Base Network Gas Price & Latest Block

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

Returns the current gas price and latest block number on the Base blockchain network

## Facts

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

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 base-network-gas-price-latest-block-25eb6831
```

Example prompt: What's the current gas price on Base and what's the latest block number? I want to know if now is a good time to submit a transaction.

## When to prefer this

Use this endpoint when you need real-time Base network gas pricing and block data specifically, especially for pre-transaction fee estimation, gas optimization bots, or network congestion checks on the Base L2. Prefer this over general Ethereum gas trackers when targeting Base specifically.

## Known failure modes

- RPC node downtime causing inability to fetch latest block or gas price
- Network congestion causing stale or delayed data
- Payment failure (insufficient USDC balance or x402 protocol error) blocking the request
- Response may lag if Base mainnet is experiencing issues

## How this service works

Base network gas price and latest block

## Output

Returns the current gas price (in gwei or wei) on the Base network and the latest block number, giving a real-time snapshot of network conditions for fee estimation and timing decisions.

## 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"
    }
   }
  }
 }
}
```

## More

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