{"uid":"cap_JnKsxLHnj-p6iR1JqAsbg","slug":"nythosx-gas-price-api-b1050987","name":"NythosX Gas Price API","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?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":["chain"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon","solana"],"type":"string","description":"Chain to query"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"rpc":"mainnet.base.org","name":"Base","block":21512345,"chain":"base","tiers":{"fast":{"maxFeeGwei":0.0204,"maxPriorityFeeGwei":0.01},"slow":{"maxFeeGwei":0.0114,"maxPriorityFeeGwei":0.001},"standard":{"maxFeeGwei":0.0124,"maxPriorityFeeGwei":0.002}},"costUsd":{"swap":{"fast":0.0052,"slow":0.0031,"standard":0.0035},"transfer":{"fast":0.0008,"slow":0.0004,"standard":0.0005},"usdc_transfer":{"fast":0.0019,"slow":0.0011,"standard":0.0012}},"gasUnits":{"swap":180000,"transfer":21000,"usdc_transfer":65000},"blockTime":"2026-10-21T00:00:00.000Z","nativeUsd":2468.07,"baseFeeGwei":0.0052,"nativeSymbol":"ETH","l1DataFeeIncluded":true}},"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_x2L-f_9ZKo49PcKGjS-F7","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":"Returns current gas fees, block data, and estimated transaction costs for a specified blockchain network","exampleAgentPrompt":"What are the current gas prices on Base — give me the slow, standard, and fast tiers in Gwei along with estimated USD costs for a USDC transfer?","exampleUseCases":[{"title":"DeFi swap cost check","prompt":"Before I execute this swap on Arbitrum, what are the current gas fees and how much would a swap transaction actually cost me in USD at standard speed?"},{"title":"Multi-chain gas comparison","prompt":"Check the current gas prices on Ethereum, Base, and Optimism for me — I want to know which chain is cheapest right now for a standard USDC transfer."},{"title":"Autonomous agent transaction timing","prompt":"What's the current base fee on Polygon and what would a token transfer cost at the slow tier? I want to know if now is a good time to submit a transaction."}],"resultDescription":"Returns a JSON object with the chain name and RPC endpoint, current block number and timestamp, native token USD price, base fee in Gwei, and three fee tiers (slow/standard/fast) each with maxFeeGwei and maxPriorityFeeGwei. Also includes pre-calculated USD cost estimates for common transaction types (ETH transfer, USDC transfer, swap) at each tier, plus the raw gas unit estimates used in calculations. L1 data fee is included for L2 chains.","failureModes":["Missing or invalid 'chain' query parameter returns an error — must be one of: base, ethereum, arbitrum, optimism, polygon, solana","Payment failure (402) if x402 USDC payment on Base is not provided or is insufficient","RPC node unavailability for the queried chain may cause timeout or stale data","Solana support is noted as optional and may not always be available"],"whenToPreferThis":"Choose this endpoint when an AI agent needs real-time gas fee data across multiple EVM chains or Solana without running its own RPC node. It is especially useful when you need USD-denominated cost estimates for common transaction types (transfer, USDC transfer, swap) rather than raw Gwei values alone. It consolidates multi-chain gas data into a single pay-per-call API, making it cost-effective for agents that query gas infrequently and don't want to maintain RPC subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:30:30.277Z","isFirstParty":false,"canonicalSlug":"nythosx-gas-price-api-b1050987"}