{"uid":"cap_Fv_nLL1w3-Oeqid0hhHc0","slug":"mgo-multi-chain-gas-optimizer-premium-d4169027","name":"MGO Multi-chain Gas Optimizer - Premium","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/premium","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"tier":"premium","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"}}},{"chain":"BNB Chain","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"1.0000","totalFeeGwei":"1.0000","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.05,"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":"Polygon","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"30.0000","totalFeeGwei":"30.0000","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.003,"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":"Avalanche","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"25.0000","totalFeeGwei":"25.0000","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.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":"zkSync Era","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"0.0250","totalFeeGwei":"0.0250","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":"Hyperliquid","status":"ok","chainId":1,"gasPrice":{"baseFeeGwei":"0.5000","totalFeeGwei":"0.5000","priorityFeeGwei":"0.0010"},"nativeToken":"ETH","tokenPriceUsd":3500,"estimatedCosts":{"dexSwap":{"usdc":0.01,"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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_boPybagAQI1gm7jJJup5t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 recommends the cheapest chain for a given transaction type","exampleAgentPrompt":"What's the cheapest chain right now to do a DEX swap — can you compare gas costs across Ethereum, Base, Arbitrum, and Optimism and tell me which one I should use?","exampleUseCases":[{"title":"Cheapest chain for DeFi swap","prompt":"I'm about to do a Uniswap-style swap — can you check current gas prices across all supported EVM chains and tell me which one will cost the least in USD right now?"},{"title":"Pre-bridge gas cost check","prompt":"Before I bridge assets, can you pull real-time gas fees for Ethereum, Arbitrum, Optimism, and Base so I know which chain is cheapest for an ERC-20 transfer today?"},{"title":"Automated gas routing for agent","prompt":"My agent needs to send a batch of native token transfers — can you check current gas prices across all 9 supported EVM chains and return the cheapest option with the estimated cost in USDC?"}],"resultDescription":"A JSON object with a 'premium' tier label and an array of chain entries, each containing: chain name, chain ID, status, base fee / total fee / priority fee in Gwei, native token and its USD price, and estimated costs in both USDC and native token for three transaction types (native transfer, ERC-20 transfer, DEX swap). Implicitly includes a cheapest-chain recommendation based on the compared data.","failureModes":["Payment not received or x402 micropayment fails — returns 402 Payment Required","Upstream RPC unavailable for a chain — that chain's status field set to error or degraded","All chains unreachable — empty or error-only chain array returned","Invalid or malformed request — 400 Bad Request","Rate limit exceeded on underlying RPC providers — delayed or partial data"],"whenToPreferThis":"Choose this endpoint when an agent or user needs a real-time, multi-chain gas price comparison across up to 9 EVM networks in a single call, especially when optimizing transaction routing for cost. It is ideal for DeFi agents, wallet apps, or automation pipelines that need to decide which chain to execute on before submitting a transaction. Prefer this over single-chain gas oracles when cross-chain cost comparison and USD-denominated cost estimates are required. The x402 pay-per-call model means no API key setup is needed, making it suitable for ephemeral or infrequent agent calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:38:39.225Z","isFirstParty":false}