# EIP-1559 Gas Price Estimator & Pre-Transaction Cost Calculator

> EIP-1559 Gas Price Estimator & Pre-Transaction Cost Calculator is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Reads the latest block on Base, Ethereum, Optimism, or Arbitrum to derive base fee, suggest priority fees for safe-low/standard/fast tiers, compute maxFeePerGas, and convert estimated transaction costs to USD.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/gas-price
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-cded826b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R3ZwZY7ihG-ufwhrS2unb

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-deployer-x402-deployer-workers-dev-cded826b -d '<json body>'
```

Example prompt: What are the current EIP-1559 gas fees on Ethereum mainnet right now — give me safe-low, standard, and fast tiers with the estimated USD cost for a standard ETH transfer?

## When to prefer this

Use this endpoint when you need real-time EIP-1559 gas estimates across Base, Ethereum, Optimism, or Arbitrum, especially when you need USD cost conversion for user-facing displays or pre-flight transaction cost checks. Prefer this over raw RPC calls when you need structured tier breakdowns (safe-low/standard/fast) without writing custom fee logic.

## Known failure modes

- Unsupported network specified — returns 400 with list of supported chains
- RPC node unavailable or rate-limited — returns 502 or timeout
- Latest block not yet available — stale data or retry needed
- Invalid transaction type provided — returns 400 with supported types
- Price feed unavailable — USD conversion may be missing or approximate

## How this service works

Gas price API / EIP-1559 fee estimator / Base + Ethereum + Optimism + Arbitrum gas tracker / pre-tx cost estimator. Reads the chain's latest block, derives base fee, suggests priority fees for safe-low/standard/fast tiers, computes total maxFeePerGas, and converts cost to USD for common tx types.

## Output

Returns base fee from latest block, suggested priority fees (tip) for safe-low, standard, and fast tiers, computed maxFeePerGas for each tier, and estimated USD cost for common transaction types (e.g. ETH transfer, token transfer, contract deployment) on the requested EVM network.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-cded826b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
