{"uid":"cap_wmZ8_MIcFk4dbcuq_d_pL","slug":"mgo-multi-chain-gas-optimizer-basic-5a95833b","name":"MGO Multi-chain Gas Optimizer - Basic","description":"Compare real-time gas prices across up to 9 EVM chains and get a cheapest-chain recommendation. Pay-per-call via x402 (USDC on Base). No API key.","url":"https://api.mgo.chain-ops.xyz/gas/basic","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"tier":"basic","chains":[{"chain":"Ethereum","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"12.3456","totalFeeGwei":"12.3456","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":5.12,"label":"DEX swap (Uniswap-style)","native":"0.00030000","gasUnits":"150000"},"erc20Transfer":{"usdc":0.455,"label":"ERC-20 token transfer","native":"0.00013000","gasUnits":"65000"},"nativeTransfer":{"usdc":0.147,"label":"Simple native token transfer","native":"0.00004200","gasUnits":"21000"}}},{"chain":"Base","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"0.0100","totalFeeGwei":"0.0100","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.001,"label":"DEX swap (Uniswap-style)","native":"0.00030000","gasUnits":"150000"},"erc20Transfer":{"usdc":0.455,"label":"ERC-20 token transfer","native":"0.00013000","gasUnits":"65000"},"nativeTransfer":{"usdc":0.147,"label":"Simple native token transfer","native":"0.00004200","gasUnits":"21000"}}},{"chain":"Arbitrum","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"0.0200","totalFeeGwei":"0.0200","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.002,"label":"DEX swap (Uniswap-style)","native":"0.00030000","gasUnits":"150000"},"erc20Transfer":{"usdc":0.455,"label":"ERC-20 token transfer","native":"0.00013000","gasUnits":"65000"},"nativeTransfer":{"usdc":0.147,"label":"Simple native token transfer","native":"0.00004200","gasUnits":"21000"}}},{"chain":"Optimism","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"0.0150","totalFeeGwei":"0.0150","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.0015,"label":"DEX swap (Uniswap-style)","native":"0.00030000","gasUnits":"150000"},"erc20Transfer":{"usdc":0.455,"label":"ERC-20 token transfer","native":"0.00013000","gasUnits":"65000"},"nativeTransfer":{"usdc":0.147,"label":"Simple native token transfer","native":"0.00004200","gasUnits":"21000"}}}],"success":true,"timestamp":"2026-03-08T10:00:00.000Z","tokenPrices":{"ETH":3500},"recommendation":{"action":"Use Base — saves 99.8% vs Ethereum","vsExpensive":{"chain":"Ethereum","dexSwapUsdc":5.12,"savingsPercent":"99.8%"},"cheapestChain":"Base","cheapestChainId":8453,"estimatedCostsUsdc":{"dexSwap":0.001}},"totalLatencyMs":420}},"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_eWwGnOAS6T9bm4SIUyTwr","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":"Fetches real-time gas prices across up to 9 EVM chains and returns estimated transaction costs plus a cheapest-chain recommendation","exampleAgentPrompt":"Check real-time gas prices across all supported EVM chains and tell me which one is cheapest right now for doing a DEX swap — I want the estimated cost in USDC and Gwei for each chain.","exampleUseCases":[{"title":"Cheapest chain for DEX swap","prompt":"I want to do a Uniswap-style token swap — can you check gas prices across all the EVM chains right now and tell me which one will cost me the least in USDC fees?"},{"title":"DeFi routing cost audit","prompt":"Before I execute this ERC-20 transfer, check real-time gas across Ethereum, Base, Arbitrum, and Optimism and give me the estimated cost in USDC for each so I can pick the cheapest."},{"title":"Gas price monitoring dashboard","prompt":"Pull the current gas prices across all 9 supported EVM chains and show me a comparison of base fee, priority fee, and estimated native transfer cost for each — I want to see which chains are congested right now."}],"resultDescription":"Returns a JSON object with a tier field, a list of supported chains each containing: chain name, chainId, status, gas price breakdown (baseFeeGwei, totalFeeGwei, priorityFeeGwei), native token symbol and USD price, and estimated costs in both USDC and native token for three transaction types (native transfer, ERC-20 transfer, DEX swap). Also includes a cheapest-chain recommendation.","failureModes":["RPC node unavailability for one or more chains returns that chain with status != ok","Payment not received via x402 results in 402 Payment Required response","Network timeout if multiple chain RPCs are slow simultaneously","Stale gas data if upstream RPC is lagging","Invalid or missing x402 payment header returns authentication error"],"whenToPreferThis":"Use this endpoint when you need a real-time cross-chain gas comparison across multiple EVM networks in a single call rather than querying each chain's RPC individually. Ideal for DeFi routing agents, wallet UIs, or cost-optimization workflows that need to decide which chain to execute a transaction on. Prefer this over chain-specific gas oracles when the goal is to minimize fees by choosing the optimal network.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:33:08.989Z","isFirstParty":false}