# Hermes x402 Toolkit – Base Chain Gas Price Lookup

> Hermes x402 Toolkit – Base Chain Gas Price Lookup is a paid API for AI agents from api.zlovev.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-17).

Returns current Base (EVM) network gas prices and USD cost estimates for specified gas amounts, using live ETH/USD pricing.

## Facts

- Endpoint: GET https://api.zlovev.com/api/chain/gas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-x402-toolkit-base-chain-gas-price-lookup-31f69102
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VM5CtR2SUfTPNeOwHzT27

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 hermes-x402-toolkit-base-chain-gas-price-lookup-31f69102
```

Example prompt: What would a standard ETH transfer (21000 gas) and a typical ERC-20 transfer (65000 gas) cost right now in USD on Base? Check current gas prices for both.

## When to prefer this

Choose this endpoint when an AI agent needs real-time gas fee estimates for Base (EVM L2) transactions without setting up API keys or accounts — particularly useful for pay-as-you-go agent workflows that need to budget or gate on current transaction costs. Prefer over self-hosted RPC calls when simplicity and no-account access matter.

## Known failure modes

- More than 8 gas_limits values provided — request rejected
- Gas limit value outside 21000–5000000 range — validation error
- Malformed comma-separated gas_limits string — parse error
- Payment not provided or insufficient USDC — 402 Payment Required
- Network or upstream RPC unavailability — 5xx error

## How this service works

Pay-per-call data for AI agents: web page -> clean LLM-ready text, China A-share market data, Chinese text utilities. No API key, no account, no signup — pay USDC on Base per request.

## Output

Returns a JSON object with: ok (boolean), current block number, ETH/USD exchange rate, current gas price in wei, and an array of cost objects each pairing a requested gas limit with its USD cost.

## 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",
     "properties": {
      "gas_limits": {
       "type": "string",
       "description": "Comma-separated gas units to price (max 8, each 21000-5000000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "block": 51389007,
  "costs": [
   {
    "gas": 21000,
    "usd": 0.0003
   }
  ],
  "eth_usd": 2394.84,
  "gas_price_wei": 6000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-x402-toolkit-base-chain-gas-price-lookup-31f69102/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zlovev.com](https://www.zero.xyz/host/api.zlovev.com/llms.txt)
