# Market Intelligence API – EVM Gas Fees & Transaction Cost Estimator

> Market Intelligence API – EVM Gas Fees & Transaction Cost Estimator is a paid API for AI agents from api.marketintelligenceapi.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Returns current base fee, priority fee percentiles, and USD cost estimates for token transfers and DEX swaps across Ethereum, Base, Arbitrum, Optimism, Polygon, and other EVM chains to help choose the cheapest chain.

## Facts

- Endpoint: GET https://api.marketintelligenceapi.com/api/v1/markets/gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-intelligence-api-evm-gas-fees-transaction-cost-estimator-f3ce08f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__sk_3_b53Lt8nR8SlLFer

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 market-intelligence-api-evm-gas-fees-transaction-cost-estimator-f3ce08f9
```

Example prompt: Before I send this DEX swap, check the current gas fees across Ethereum, Base, Arbitrum, Optimism, and Polygon and tell me which chain is cheapest right now in USD.

## When to prefer this

Choose this endpoint when you need a single call to compare real-time gas costs across multiple EVM chains before routing a transaction — ideal for agents optimizing DeFi execution paths, cross-chain arbitrage bots, or any workflow that needs to pick the cheapest chain dynamically. Prefer this over on-chain RPC calls when you want normalized USD cost estimates for both transfers and DEX swaps without building your own multi-chain aggregation layer.

## Known failure modes

- Payment required (402) if x402 micropayment header is missing or underfunded
- Rate limiting if too many requests are made in a short window
- Stale data if the underlying RPC nodes experience lag
- Empty or partial chain data if a specific chain's RPC is temporarily unavailable
- Network timeout if the endpoint is slow to aggregate multi-chain fee data

## How this service works

Gas price and transaction fees per chain ($0.001): base fee, priority fee percentiles and the USD cost of a transfer and a DEX swap on Ethereum, Base, Arbitrum, Optimism, Polygon and other EVM chains. Use before sending a transaction to pick the cheapest chain.

## Output

Returns the current base fee, priority fee percentiles (e.g. 10th, 50th, 90th), and estimated USD cost of a standard ERC-20 transfer and a typical DEX swap for each supported EVM chain (Ethereum, Base, Arbitrum, Optimism, Polygon, and others), enabling direct chain-by-chain cost comparison.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "description": "Example JSON response returned by this endpoint"
    }
   },
   "additionalProperties": true
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-intelligence-api-evm-gas-fees-transaction-cost-estimator-f3ce08f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.marketintelligenceapi.com](https://www.zero.xyz/host/api.marketintelligenceapi.com/llms.txt)
