{"uid":"cap_TOxg-SH7-UxnTdRcljE7h","slug":"swift-bot-labs-evm-gas-price-lookup-c93f6ede","name":"Swift Bot Labs EVM Gas Price Lookup","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":[],"properties":{"chain":{"type":"string","description":"One of ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, base-sepolia, sepolia (or a chain id)"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"evm-gas","result":{"block":37512345,"chain":"base","costs":{"erc20Transfer":"0.000000403","nativeTransfer":"0.000000130"},"baseFeeGwei":"0.0052","gasPriceGwei":"0.0062","priorityFeeGwei":"0.001"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9v80X8GGsrzyL_vsz76LP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas price, base fee, priority fee, and estimated transfer costs for a specified EVM-compatible blockchain network","exampleAgentPrompt":"What are the current gas fees on Base — including the base fee, gas price, and estimated cost for an ERC-20 transfer?","exampleUseCases":[{"title":"Pre-transaction cost check on Ethereum","prompt":"Before I submit this on-chain transaction, what's the current gas price and estimated cost for a native ETH transfer on Ethereum mainnet?"},{"title":"DeFi bot gas optimization on Arbitrum","prompt":"Check the current gas price and base fee on Arbitrum so I can decide whether it's cheap enough to execute my trade right now."},{"title":"Cross-chain gas comparison for BSC","prompt":"What are the current gas fees on BSC — I need the gas price in Gwei and the estimated cost of an ERC-20 transfer to figure out which chain is cheapest."}],"resultDescription":"A JSON object containing: the current block number, chain name, base fee in Gwei, gas price in Gwei, priority fee in Gwei, and estimated USD costs for both a native transfer and an ERC-20 token transfer on the requested chain.","failureModes":["Unsupported chain name or chain ID returns an error","Network connectivity issues to the target RPC may cause transient failures","Stale data if the underlying RPC node is behind","Returns 402 Payment Required if USDC payment via x402 is not provided or invalid"],"whenToPreferThis":"Use this endpoint when you need real-time, on-chain gas data for EVM-compatible networks without managing API keys or subscriptions — ideal for agents making cost-gating decisions before submitting transactions. Covers 10+ chains including Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Gnosis, and testnets. Pay per call at $0.003 USDC, making it cost-effective for sporadic lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:52.148Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-evm-gas-price-lookup-c93f6ede"}