# Relai Gas Price Estimator

> Relai Gas Price Estimator is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-08).

Returns current gas price estimates for a specified blockchain via Relai's paid relay endpoint.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1772442473781/v4/%7Bchain%7D/gasPrice
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-relai-fi-bf342aee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4dWCRHlWsEi0DfMpLB5-C

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 api-relai-fi-bf342aee -d '<json body>'
```

Example prompt: What's the current gas price on Ethereum mainnet? Use the Relai gas price relay endpoint to fetch me a live estimate.

## When to prefer this

Use this endpoint when you need up-to-date gas price estimates for a specific blockchain and are willing to pay a small per-call fee via x402/USDC. Prefer this over free alternatives when reliability and freshness of the relay matter, or when integrating into a paid Web3 workflow that already uses the Relai infrastructure.

## Known failure modes

- Invalid or unsupported chain ID returns an error or empty response
- Payment failure (x402) if USDC balance is insufficient
- Network timeout if the underlying blockchain RPC is slow
- Malformed chain path parameter returns 400-level error

## How this service works

Returns current gas price estimates for a specified blockchain via Relai's paid relay endpoint.

## Output

Returns current gas price estimates for the specified blockchain, including fee tier data (e.g. slow, standard, fast) or base/priority fee values depending on the chain.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-relai-fi-bf342aee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
