{"uid":"cap_yU9EBf4nqG909-VX80EDB","slug":"forest-gas-station-evm-gas-snapshot-9a9706fa","name":"Forest Gas Station – EVM Gas Snapshot","description":"Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/chain/gas-snapshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["ethereum","optimism","bnb","polygon","base","arbitrum","avalanche"],"type":"string","description":"Public chain value used to scope this lookup."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"chain":"ethereum","source":"SolidRPC public EVM JSON-RPC","base_fee":{"next_wei":"1","latest_wei":"1"},"chain_id":1,"freshness":"current_upstream_snapshot","cache_age_ms":0,"oldest_block":"1","source_method":"eth_feeHistory","gas_used_ratio":[0,0,0,0],"sampled_blocks":4,"transaction_broadcast":false,"transaction_simulated":false,"priority_fee_percentiles_wei":{"p25":"1","p50":"1","p90":"1"}},"meta":{"cache":"miss","provider":"solidrpc-public","checked_at":"2026-01-01T00:00:00.000Z","duration_ms":0},"version":"1","capability":"chain.gas-snapshot"}},"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_pTJfKxfPttMFixb1En30n","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 a bounded current EVM fee-history snapshot (base fee and priority-fee percentiles) for a specified supported chain via SolidRPC public JSON-RPC","exampleAgentPrompt":"What are the current base fees and priority fee percentiles on Ethereum right now? Pull a gas snapshot from Forest Gas Station.","exampleUseCases":[{"title":"Pre-transaction fee check on Ethereum","prompt":"Before I submit my Ethereum transaction, can you pull the latest gas snapshot so I can see what the current base fee and priority fee percentiles look like?"},{"title":"Cross-chain gas comparison for DeFi routing","prompt":"I need the current gas fee snapshots for both Arbitrum and Optimism — can you fetch them so I can figure out which chain is cheaper to bridge on right now?"},{"title":"Gas monitoring for automated on-chain workflow","prompt":"Can you check the current gas fee snapshot on Base mainnet and tell me the latest base fee and priority fee evidence so I can decide whether now is a good time to trigger my on-chain action?"}],"resultDescription":"Returns a bounded fee-history snapshot for the requested EVM chain, including recent base-fee data and sampled priority-fee percentile evidence from the latest blocks. Does not include gas limit estimation, transaction simulation, wallet access, or fee optimization recommendations.","failureModes":["Unsupported chain value returns validation error","SolidRPC upstream unavailability causes request failure","HTTP 402 returned if payment header is missing or malformed","Stale snapshot if upstream node is temporarily lagging","Network timeout if the JSON-RPC provider is slow"],"whenToPreferThis":"Use this endpoint when you need a quick, current read of EVM gas fee conditions (base fee and priority fee percentiles) for one of seven supported chains (Ethereum, Optimism, BNB, Polygon, Base, Arbitrum, Avalanche) without needing gas limit estimation, transaction simulation, or wallet integration. Prefer this over raw RPC calls when you want a clean, pre-packaged fee-history snapshot via a pay-per-call API with no infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:41:51.155Z","isFirstParty":false,"canonicalSlug":"forest-gas-station-evm-gas-snapshot-9a9706fa"}