{"uid":"cap_aQzLNOn1MrBQqREYWRTfP","slug":"bitcoin-network-fee-mempool-stats-68d8c5c7","name":"Bitcoin Network Fee & Mempool Stats","description":"Current Bitcoin network fee rates in sat/vB for next-block, half-hour, one-hour and economy confirmation, the estimated cost in sats of a typical payment, mempool size and total pending fees, and the latest block height. Use before sending a Bitcoin transaction or to decide whether to wait for lower fees.","url":"https://agent-data-tools.revmesh2074.workers.dev/btc-fees?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"only":{"type":"string","description":"Optional: comma-separated top-level result keys to keep, for a smaller answer (for example only=price,symbol); unknown keys are ignored and an empty match returns the full result"}}},"responseSchema":{"type":"object","required":["network","unit","fees","typicalPaymentSats","typicalPaymentVbytes","source","limitations","mempool","blockHeight","checkedAt"],"properties":{"fees":{"type":"object","required":["nextBlock","halfHour","hour","economy","minimum"],"properties":{"hour":{"type":"number","minimum":0},"economy":{"type":"number","minimum":0},"minimum":{"type":"number","minimum":0},"halfHour":{"type":"number","minimum":0},"nextBlock":{"type":"number","minimum":0}}},"unit":{"const":"sat/vB"},"source":{"const":"https://mempool.space/api"},"mempool":{"type":"object","required":["transactions","vsize","totalFeesBtc"],"properties":{"vsize":{"type":"integer","minimum":0},"totalFeesBtc":{"type":"number","minimum":0},"transactions":{"type":"integer","minimum":0}}},"network":{"const":"bitcoin"},"checkedAt":{"type":"string","description":"Server retrieval time in UTC. Upstream endpoints are not an atomic snapshot."},"blockHeight":{"type":"integer","minimum":0},"limitations":{"type":"array","items":{"type":"string"},"minItems":1},"typicalPaymentSats":{"type":"object","required":["nextBlock","hour"],"properties":{"hour":{"type":"number","minimum":0},"nextBlock":{"type":"number","minimum":0}}},"typicalPaymentVbytes":{"const":141,"description":"Illustrative transaction-size assumption; not the buyer's transaction size."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USD","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_KeKIj9mdeMjE63KsBlhui","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 live Bitcoin network fee estimates (sat/vB) for multiple confirmation targets along with mempool size and transaction data","exampleAgentPrompt":"What are the current Bitcoin fee rates — how much per sat/vB do I need to pay for next-block, half-hour, and hour confirmation, and how congested is the mempool right now?","exampleUseCases":[{"title":"Optimize Bitcoin transaction fee before sending","prompt":"Before I send this Bitcoin payment, what fee rate should I use to get it confirmed in the next block vs. within an hour? What's the mempool looking like right now?"},{"title":"Monitor Bitcoin network congestion for trading bot","prompt":"Check the current Bitcoin mempool size and fee rates — I need to know if the network is congested and what the economy fee is right now."},{"title":"Estimate Bitcoin withdrawal cost for exchange","prompt":"What would a typical Bitcoin payment cost in sats right now at the next-block fee rate, and what's the current sat/vB rate I should use?"}],"resultDescription":"A JSON object containing fee estimates in sat/vB for multiple confirmation targets (nextBlock, halfHour, hour, economy, minimum), the current Bitcoin block height, mempool statistics (vsize in vBytes, total fees in BTC, transaction count), and typical payment cost in sats for hour and next-block confirmation targets.","failureModes":["Payment not received or invalid USDC payment on Base — returns HTTP 402 with payment instructions","Upstream Bitcoin node/mempool data source unavailable — may return 5xx error or stale data","Network timeout from Cloudflare Worker — returns 5xx","No input parameters required so malformed requests are unlikely, but unexpected query params are ignored"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time Bitcoin fee rate data without setting up an account or API key, and is willing to pay $0.002 USDC per call via x402 on Base. Prefer this over self-hosted mempool APIs when simplicity and pay-per-use economics matter. Good for agents that need occasional fee lookups rather than high-frequency polling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:39:52.411Z","isFirstParty":false,"canonicalSlug":"bitcoin-network-fee-mempool-stats-68d8c5c7"}