# Blue Hub Gas Tracker

> Blue Hub Gas Tracker is a paid API for AI agents from blueagent.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-16).

Returns live Base network gas price and estimated USD costs for common on-chain actions.

## Facts

- Endpoint: POST https://blueagent.dev/api/x402/gas-tracker?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blue-hub-gas-tracker-3f122d87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_koMjtqW8D7T9QEVSwsTJU

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 blue-hub-gas-tracker-3f122d87 -d '<json body>'
```

Example prompt: What's the current gas price on Base and how much would a typical token swap cost me in USD right now?

## When to prefer this

Use this endpoint when you need real-time Base network gas prices and USD cost estimates for common DeFi actions in a single call, especially in pre-trade cost checks, profitability calculations, or user-facing fee dashboards targeting the Base L2 ecosystem.

## Known failure modes

- Base RPC node unavailable — may return stale or error response
- Gas oracle data temporarily unavailable — partial results or timeout
- Malformed request body — returns validation error
- Rate limiting or payment failure — 402 or 429 response

## How this service works

Live Base gas price and USD cost estimates for common actions. Use when an agent asks what a Base transaction costs, or needs a fee figure before telling a user to sign.

## Output

Returns the live Base network gas price (in Gwei or similar unit) alongside USD cost estimates for a set of common on-chain actions such as token transfers, swaps, and contract interactions, allowing agents and users to gauge current transaction costs before executing.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/blue-hub-gas-tracker-3f122d87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blueagent.dev](https://www.zero.xyz/host/blueagent.dev/llms.txt)
