{"uid":"cap_kj_WkBpyYewEBAlhU0Mot","slug":"zerion-gas-prices-api-0242dd9b","name":"Zerion Gas Prices API","description":"Interpreted wallet data for more than 40 chains and Solana: portfolios, DeFi positions, PnL, transactions and NFTs. REST for apps, x402 pay-per-call for agents.","url":"https://api.zerion.io/v1/gas-prices?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","properties":{"filter[chain_ids]":{"type":"string","description":"Comma-separated chain IDs; omit for all chains"},"filter[gas_types]":{"type":"string","description":"Comma-separated gas types: classic, eip1559, optimistic"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Resource ID."},"type":{"type":"string","description":"Resource type."},"attributes":{"type":"object","description":"Resource attributes; see https://developers.zerion.io"}}},"description":"Array of JSON:API resource objects."},"links":{"type":"object","description":"Self and pagination links."}}}}}}},"responseSchema":{"type":"json","example":{"data":[{"id":"<resource id>","type":"<resource type>","attributes":{}}],"links":{"self":"https://api.zerion.io/v1/..."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IxGK6JCc7uZF9sl76-7iK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves current gas prices across multiple EVM chains and Solana, filterable by chain and gas type (classic, EIP-1559, optimistic).","exampleAgentPrompt":"What are the current gas prices on Ethereum and Polygon right now — give me both classic and EIP-1559 rates so I can figure out the cheapest time to send my transaction?","exampleUseCases":[{"title":"Pre-trade gas cost check","prompt":"Before I execute this DeFi swap on Arbitrum, can you pull the current gas prices there so I know what fees to expect?"},{"title":"Multi-chain gas comparison","prompt":"Compare gas prices across Ethereum, Polygon, and Optimism right now — I want to pick the cheapest chain to bridge my tokens to."},{"title":"Automated gas monitoring","prompt":"Keep an eye on Ethereum gas prices and alert me when EIP-1559 base fees drop below 20 gwei so I can time my NFT mint."}],"resultDescription":"Returns an array of JSON:API resource objects, each containing a chain ID, resource type, and gas price attributes (e.g. base fee, priority fee, classic gas price) for the requested chains and gas types, plus pagination/self links.","failureModes":["Invalid chain_id values return empty data or 400 error","Unsupported gas_types values may return empty results","Rate limiting or payment failure returns 402 requiring USDC payment","Network timeout if upstream chain data is unavailable","Malformed query parameters return 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need real-time gas price data across 40+ EVM chains and Solana with support for classic, EIP-1559, and optimistic gas models. Prefer this over raw RPC calls when you want interpreted, normalized gas price data without managing individual chain RPC connections. Best when your agent needs to compare fees across chains or time transactions optimally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:36:03.380Z","isFirstParty":false,"canonicalSlug":"zerion-gas-prices-api-0242dd9b"}