# x402 Gas Price API

> x402 Gas Price API is a paid API for AI agents from x402-api-production-bd43.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Returns current blockchain network gas prices for a specified (or default) network, paid per-call via x402 micropayment

## Facts

- Endpoint: GET https://x402-api-production-bd43.up.railway.app/gas?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gas-price-api-0a2bd1a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sY7Qie5Ugh_pRV3AMH4Oz

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 x402-gas-price-api-0a2bd1a4
```

Example prompt: What are the current gas prices on Ethereum mainnet right now? Fetch it via the x402 gas API and let me know the current fee levels.

## When to prefer this

Use this endpoint when you need real-time blockchain gas price data for a specific network, especially in agentic workflows that need to decide when to submit transactions or estimate costs. It is a pay-per-call micropayment endpoint well-suited for on-demand, low-cost queries where you don't want a subscription.

## Known failure modes

- Invalid or unsupported network name returns an error or empty result
- Payment not processed (402 response if x402 payment header is missing or insufficient)
- Network data temporarily unavailable due to upstream provider outage
- Rate limiting if too many requests in a short window

## How this service works

Paid API endpoints for prices, weather, FX, news, gas, dominance, fear/greed, ATH, and more

## Output

Returns current gas price data for the specified blockchain network, typically including fee levels (e.g. slow/standard/fast gwei values or base fee and priority fee) relevant to submitting on-chain transactions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "type": "string",
   "description": "Network (default: base)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gas-price-api-0a2bd1a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-production-bd43.up.railway.app](https://www.zero.xyz/host/x402-api-production-bd43.up.railway.app/llms.txt)
