{"uid":"cap__sk_3_b53Lt8nR8SlLFer","slug":"market-intelligence-api-evm-gas-fees-transaction-cost-estimator-f3ce08f9","name":"Market Intelligence API – EVM Gas Fees & Transaction Cost Estimator","description":"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.","url":"https://api.marketintelligenceapi.com/api/v1/markets/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xVNDad10r0dH6ixzHpsHb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Cheapest chain for DEX swap","prompt":"I want to do a DEX swap — check the current gas fees on Ethereum, Arbitrum, Base, and Optimism and tell me which one will cost the least in USD right now."},{"title":"Pre-trade gas cost sanity check","prompt":"Before I execute this on-chain trade, pull the current base fee and priority fee percentiles for Ethereum and tell me roughly what a token transfer and a DEX swap would cost in USD."},{"title":"Multi-chain gas cost dashboard","prompt":"Give me a snapshot of current gas costs across all major EVM chains — Ethereum, Base, Arbitrum, Optimism, and Polygon — so I can see where fees are lowest for a simple transfer."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T10:39:23.110Z","isFirstParty":false,"canonicalSlug":"market-intelligence-api-evm-gas-fees-transaction-cost-estimator-f3ce08f9"}