{"uid":"cap_0SIg8kGBWZe9_ojxo9mHn","slug":"api-strale-io-4e02d6a5","name":"EVM Chain Gas Price Check","description":"Get current gas prices for an EVM chain. Returns safe, proposed, and fast gas prices in Gwei plus the base fee. Useful for agents deciding whether to execute a transaction now or wait.","url":"https://api.strale.io/x402/gas-price-check","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","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"chain_id":{"type":"string","description":"Chain ID (1=Ethereum, 8453=Base). Default: 1"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"chain_id":"1"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0xf085569212c5e603e8b0fa18e27cebb977a8662353f740b4f2a804ad0505f68d"},"capability":"gas-price-check","latency_ms":148,"provenance":{"source":"etherscan.io","fetched_at":"2026-06-13T04:24:06.429Z"}},"chain_id":"1","base_fee_gwei":0.105873972,"fast_gas_gwei":0.106873972,"safe_gas_gwei":0.105873972,"gas_used_ratio":"0.544979416666667,0.483140916666667,0.46501,0.682956266666667,0.33960595","proposed_gas_gwei":0.106089082}},"exampleRequest":{"chain_id":"1"},"tags":["x402"],"displayCostAmount":"0.0216","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_omPjdZniP9_CLkoxFKxya","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current safe, proposed, and fast gas prices in Gwei plus the base fee for a specified EVM blockchain.","exampleAgentPrompt":"What are the current gas prices on Ethereum mainnet — give me safe, proposed, and fast options in Gwei so I can decide whether to submit my transaction now.","exampleUseCases":[{"title":"Optimize transaction timing across chains","prompt":"Check the gas prices on both Ethereum and Base right now. Which chain has cheaper fees for my token swap, and should I wait for prices to drop before executing?"},{"title":"Monitor network congestion for batch payments","prompt":"Give me the current base fee and fast gas price on Ethereum mainnet. I need to know if it's a good time to send out these batch payments or if I should queue them until congestion drops."},{"title":"Real-time cost estimation before execution","prompt":"What's the proposed gas price in Gwei on Ethereum right now? I want to estimate whether my smart contract interaction will cost more than my budget allows before I actually submit it."}],"resultDescription":"Returns safe, proposed, and fast gas price tiers in Gwei, plus the current base fee, for the specified EVM chain (defaults to Ethereum mainnet if no chain_id provided).","failureModes":["Invalid or unsupported chain_id returns an error","Network timeout if the target chain RPC is unreachable","Payment failure if USDC balance is insufficient for the $0.0216 per-call fee","Missing required 'input' wrapper in request body causes schema validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to make real-time decisions about whether to submit an on-chain transaction, optimize gas costs, or monitor network congestion on Ethereum (chain_id=1) or Base (chain_id=8453) before executing a payment or smart contract interaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:07:11.880Z","isFirstParty":false}