# WhisperBox x402 Gas Fee Lookup

> WhisperBox x402 Gas Fee Lookup is a paid API for AI agents from x402.whisperbox.my.id, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns real-time gas fees in Gwei for a specified EVM-compatible blockchain network, payable via x402 micropayment.

## Facts

- Endpoint: GET https://x402.whisperbox.my.id/x402/gas
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/whisperbox-x402-gas-fee-lookup-ccfe224e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wxI9DgcK-6T87ZM51aHNq

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 whisperbox-x402-gas-fee-lookup-ccfe224e
```

Example prompt: What's the current gas price in Gwei on Ethereum right now? I want to know if it's a good time to send a transaction.

## When to prefer this

Choose this endpoint when an AI agent needs real-time gas fee data for a specific EVM chain before executing or recommending an on-chain transaction. Prefer it over static fee tables or manual estimation when freshness matters. It costs only $0.02 USDC per call via x402, making it cost-effective for frequent polling or pre-transaction checks in automated workflows.

## Known failure modes

- Missing or invalid 'chain' query parameter returns an error or empty response
- Unsupported chain name results in a 400 or equivalent error
- x402 payment failure (insufficient USDC balance or wallet not configured) blocks the request
- Network connectivity issues to upstream gas oracles may return stale or unavailable data

## How this service works

x402 payment-gated data suite for AI agents. Multi-chain gas fees across 12 EVM networks with real-time comparison, history, and recommendations. Plus currency rates, timezone conversion, and QR code generate/scan. $0.01-$0.02 USDC on Base.

## Output

A JSON object containing the chain identifier and the current gas price in Gwei (e.g. {"chain": "eth", "gas_gwei": 25}). Useful for real-time fee estimation before submitting on-chain transactions.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "eth",
  "gas_gwei": 25
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/whisperbox-x402-gas-fee-lookup-ccfe224e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.whisperbox.my.id](https://www.zero.xyz/host/x402.whisperbox.my.id/llms.txt)
