# toolcall.click Gas Price & Latest Block

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

Returns current gas price and latest block number for Base or Ethereum mainnet, sourced directly from public RPC nodes, refreshed within 15 seconds.

## Facts

- Endpoint: GET https://toolcall.click/t/crypto/gas
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolcall-click-gas-price-latest-block-87a0a415
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3jIaWkYmYhvVAZ9BI8F3l

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 toolcall-click-gas-price-latest-block-87a0a415
```

Example prompt: What's the current gas price and latest block on the Ethereum mainnet right now?

## When to prefer this

Use this endpoint when an agent needs real-time, low-latency gas fee data or the latest block number for Base or Ethereum mainnet without setting up a dedicated RPC connection or API key. Ideal for pre-transaction cost estimation, gas monitoring, or block-height checks. The x402 micropayment model ($0.002 USDC) makes it cost-effective for occasional lookups.

## Known failure modes

- Invalid chain value (not 'base' or 'ethereum') returns a 400 or validation error
- RPC node temporarily unavailable may return a 5xx error or stale data warning
- Payment failure via x402 protocol returns a 402 Payment Required response
- Missing required 'chain' query parameter returns a validation error

## How this service works

Current gas price and latest block for Base or Ethereum mainnet, straight from public RPC. Fresh within 15 seconds. JSON response. $0.002 USDC per call, pay via x402, no API key.

## Output

A JSON object containing the current gas price (in wei or gwei) and the latest block number for the requested chain (either 'base' or 'ethereum'), sourced from a public RPC node and guaranteed fresh within the last 15 seconds.

## 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",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Chain to query"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "blockNumber": 32456789,
  "gasPriceWei": "5150000",
  "gasPriceGwei": 0.00515
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolcall-click-gas-price-latest-block-87a0a415/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolcall.click](https://www.zero.xyz/host/toolcall.click/llms.txt)
