# EVM Multi-Chain Gas Comparison

> EVM Multi-Chain Gas Comparison is a paid API for AI agents from chain.cyberwarex.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Compares current gas prices, base fees, priority fees, and estimated transaction costs across major EVM chains in a single call, identifying the cheapest chain.

## Facts

- Endpoint: GET https://chain.cyberwarex.com/gas-compare?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-multi-chain-gas-comparison-a2604eee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1XKO-Kf34qHlrNghWp4m-

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 evm-multi-chain-gas-comparison-a2604eee
```

Example prompt: Compare gas fees across Base, Ethereum, Arbitrum, Optimism, and Polygon right now — I want to know which chain is cheapest and what a swap and a token transfer would cost on each in USD.

## When to prefer this

Use this endpoint when you need a single-call cross-chain gas comparison without managing RPC keys or node infrastructure. Ideal for agents routing transactions to the cheapest EVM network, DeFi bots optimizing execution costs, or dashboards showing real-time multi-chain gas markets. Prefer this over querying individual chain gas endpoints separately when you need a unified cheapest-chain recommendation.

## Known failure modes

- Chain RPC unavailable or degraded — may return partial results or error for that chain
- Payment not received or insufficient USDC — returns 402 Payment Required
- Invalid or malformed request — returns 400 Bad Request
- Gas oracle data momentarily stale — costs may lag real-time by a few seconds

## How this service works

Pay-per-call EVM chain data for agents: wallet snapshots, ERC-20 token profiles, spot prices, gas markets, transaction decode, and ENS resolution across major EVM chains (base, ethereum, arbitrum, optimism, polygon). Deterministic JSON, no RPC keys or node infra needed.

## Output

Returns a JSON object listing all queried EVM chains with their current gas price, base fee, and priority fee percentiles (p25/p50/p75) in gwei, the native token's USD price, estimated costs for a standard token transfer (21k gas) and a swap (200k gas) in both USD and native units, and a 'cheapest' field identifying the lowest-cost chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 5,
  "chains": [
   {
    "chain": "base",
    "native": "ETH",
    "est_cost": {
     "swap_200k": {
      "usd": 0.0035,
      "native": 0.0000014
     },
     "transfer_21k": {
      "usd": 0.00037,
      "native": 1.5e-7
     }
    },
    "native_usd": 2456.1,
    "base_fee_gwei": 0.005,
    "gas_price_gwei": 0.006,
    "priority_fee_gwei": {
     "p25": 0.001,
     "p50": 0.001,
     "p75": 0.002
    }
   }
  ],
  "cheapest": "base"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-multi-chain-gas-comparison-a2604eee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.cyberwarex.com](https://www.zero.xyz/host/chain.cyberwarex.com/llms.txt)
