# Web3Identity Gas Price API

> Web3Identity Gas Price API is a paid API for AI agents from api.web3identity.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns current gas prices across Ethereum mainnet and Layer 2 networks

## Facts

- Endpoint: GET https://api.web3identity.com/api/gas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-web3identity-com-0647e03b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GLI6irIcTvi8--s9fytwi

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-web3identity-com-0647e03b
```

Example prompt: What are the current gas prices on Ethereum mainnet and the major L2 networks like Arbitrum and Optimism right now?

## When to prefer this

Use this endpoint when an agent needs real-time gas fee data across Ethereum and L2 networks to decide optimal transaction timing, estimate transaction costs, or compare network fees. Prefer over on-chain RPC calls when aggregated multi-network data is needed in a single request.

## Known failure modes

- Network or RPC node unavailable — returns 503 or upstream error
- Unsupported network requested — returns 400 with invalid network message
- Rate limit exceeded — returns 429
- Payment not processed — returns 402 payment required

## How this service works

Current gas prices across Ethereum and L2 networks

## Output

Returns current gas price data including base fee, priority fee (tip), and total gas cost estimates in gwei and USD across Ethereum mainnet and supported L2 networks such as Arbitrum, Optimism, and Polygon.

## Example request

```json
{
 "name": "vitalik.eth"
}
```

## More

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