{"uid":"cap_fhX99ZsIMpfDpJAhGvqgu","slug":"nythosx-gas-price-comparator-3b0f8936","name":"NythosX Gas Price Comparator","description":"Pay-per-call tools for autonomous agents: current gas and fee prices across six chains, and web page to clean Markdown. x402 v2, USDC, Base (Solana optional).","url":"https://tools.nythosx.com/v1/gas/compare?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"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"tx":{"enum":["transfer","usdc_transfer","swap"],"type":"string","default":"transfer","description":"Transaction type"},"tier":{"enum":["slow","standard","fast"],"type":"string","default":"standard","description":"Speed tier"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"tx":"usdc_transfer","tier":"standard","failed":[{"name":"Polygon PoS","chain":"polygon"}],"ranking":[{"name":"Solana","block":245123456,"chain":"solana","costUsd":0.0011,"l1DataFeeIncluded":false},{"name":"Base","block":21512345,"chain":"base","costUsd":0.0012,"l1DataFeeIncluded":true}],"cheapest":"solana"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zB4NUHqEvldJD7PcTwNR5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current transaction cost estimates in USD across up to six blockchains, ranked from cheapest to most expensive, for a given transaction type and speed tier.","exampleAgentPrompt":"What's the cheapest chain to do a standard USDC transfer on right now — can you compare gas costs across all supported networks and tell me which one wins?","exampleUseCases":[{"title":"Cheapest chain for DeFi swap","prompt":"I want to execute a token swap — which blockchain has the lowest fees right now at standard speed? Compare all supported chains and tell me the cheapest option."},{"title":"USDC transfer cost optimization","prompt":"Before I send a USDC transfer, check current gas prices across chains and tell me which network will cost me the least at fast speed."},{"title":"Slow-tier fee comparison for batch ops","prompt":"I'm planning a batch of simple transfers and don't mind waiting — which chain is cheapest if I use the slow speed tier right now?"}],"resultDescription":"A JSON object containing the transaction type and tier queried, an ordered ranking array of chains with their current USD cost and block number, whether L1 data fees are included, the name of the cheapest chain, and a list of any chains that failed to return data.","failureModes":["One or more chains fail to return fee data and appear in the 'failed' array rather than ranking","Invalid enum value for 'tx' or 'tier' query parameters returns a validation error","Payment failure or x402 authentication issue prevents the call from completing","Network timeouts on individual chain RPC nodes cause partial results"],"whenToPreferThis":"Use this endpoint when an agent or user needs to choose the most cost-efficient blockchain for executing a transaction and wants a single ranked comparison across multiple networks in real time. Prefer it over manually querying each chain's RPC or using static fee tables, especially for USDC transfers or swaps where L1 data fees on rollups are a significant factor.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:38:16.087Z","isFirstParty":false,"canonicalSlug":"nythosx-gas-price-comparator-3b0f8936"}