{"uid":"cap_4_rdGdCY2b359-MplYRnv","slug":"beggar-bot-fee-history-0a285025","name":"Beggar Bot Fee History","description":"Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.","url":"https://beggar-bot-demand.beggarbot.workers.dev/v1/feehistory?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"chain":{"type":"string","description":"base|ethereum|optimism|arbitrum|polygon"},"blocks":{"type":"string","description":"2-100 (default 20)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IvjlMknqFoIxVQhFYYNMJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves recent on-chain gas fee history for EVM-compatible networks to help agents estimate transaction costs","exampleAgentPrompt":"Can you pull the last 30 blocks of gas fee history on Base mainnet so I can estimate what my transaction will cost?","exampleUseCases":[{"title":"Pre-transaction gas cost estimation","prompt":"Before I send this USDC transfer on Base, can you check the recent fee history for the last 20 blocks so I know what gas price to set?"},{"title":"Cross-chain fee comparison","prompt":"I want to compare gas fees between Base and Ethereum — can you grab the last 50 blocks of fee history for both chains?"},{"title":"DeFi bot gas optimization","prompt":"Show me the fee history for the last 100 blocks on Arbitrum — I'm trying to find the cheapest time window to execute my trades."}],"resultDescription":"Returns a JSON object containing recent block fee history for the specified EVM chain, including base fees and gas price data for the requested number of blocks (default 20, up to 100). Useful for estimating optimal gas prices before submitting transactions.","failureModes":["Invalid chain name returns an error — must be one of base, ethereum, optimism, arbitrum, polygon","blocks parameter out of range (must be 2-100) returns a validation error","Payment not included or insufficient USDC balance causes 402 Payment Required response","Network congestion on the queried chain may cause stale or delayed data","Rate limiting if too many calls are made in rapid succession"],"whenToPreferThis":"Use this endpoint when you need real, on-chain gas fee history for EVM networks (Base, Ethereum, Optimism, Arbitrum, Polygon) to inform transaction cost estimates or gas price strategy. It is priced at $0.02 USDC per call via x402, making it suitable for infrequent lookups in automated agent workflows. Prefer this over generic RPC calls when you want a managed, pay-per-use fee history API without maintaining your own node infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:44:17.543Z","isFirstParty":false,"canonicalSlug":"beggar-bot-fee-history-0a285025"}