# Live Gas Prices API (Base Fee + Priority Fee Percentiles)

> Live Gas Prices API (Base Fee + Priority Fee Percentiles) is a paid API for AI agents from task-radar-x402.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns real-time gas prices including base fee and priority fee percentiles for one or more EVM chains via public RPC.

## Facts

- Endpoint: GET https://task-radar-x402.vercel.app/api/gas?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/live-gas-prices-api-base-fee-priority-fee-percentiles-4832f200
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FzXiUSld8KutrNseAcd1I

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 live-gas-prices-api-base-fee-priority-fee-percentiles-4832f200
```

Example prompt: What are the current gas prices on Ethereum and Base right now — give me the base fee and priority fee percentiles so I can decide when to send my transaction.

## When to prefer this

Use this endpoint when you need real-time, multi-chain gas fee data including both base fee and priority fee percentiles for user-facing transaction cost estimation or timing decisions. Prefer this over static gas oracles when freshness matters and when you need percentile breakdowns for tip selection.

## Known failure modes

- Unsupported chain name returns an error or is ignored
- Public RPC node downtime may cause stale or missing data
- Malformed chain list parameter causes a 400 error
- Rate limiting or payment failure (x402) if USDC payment not processed

## How this service works

Live gas prices (base fee + priority fee percentiles) from public RPC. 0.01 USDC/call on Base.

## Output

Returns current gas price data for the requested chains including the latest base fee and priority fee percentiles (e.g. 25th, 50th, 75th, 95th percentile tip values), fetched directly from public RPC endpoints in real time.

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chains": {
       "type": "string",
       "description": "Comma list: ethereum,base,arbitrum,optimism,polygon,bsc (default all)"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/live-gas-prices-api-base-fee-priority-fee-percentiles-4832f200/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from task-radar-x402.vercel.app](https://www.zero.xyz/host/task-radar-x402.vercel.app/llms.txt)
