{"uid":"cap_mEyE5ZaGioCMyoC0VQsQy","slug":"bitcoin-fee-forecast-transaction-cost-estimator-098f457b","name":"Bitcoin Fee Forecast & Transaction Cost Estimator","description":"Returns the current fee rates for the usual confirmation targets together with the state of the mempool behind them, and then does the part that is usually missing: it estimates the virtual size of the transaction you describe and computes the resulting total fee in satoshis for each target.","url":"https://finanz.halowerk.com/v1/bitcoin-fee-forecast","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"inputs":{"type":"integer","default":1,"maximum":500,"minimum":1,"description":"Number of inputs your transaction spends. This is what drives the cost."},"outputs":{"type":"integer","default":2,"maximum":500,"minimum":1,"description":"Number of outputs, usually recipient plus change."},"input_type":{"enum":["p2wpkh","p2tr","p2sh_p2wpkh","p2pkh"],"type":"string","default":"p2wpkh"},"output_type":{"enum":["p2wpkh","p2tr","p2sh","p2pkh"],"type":"string","default":"p2wpkh"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TlIER7siK5edOzxNvnPH8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current Bitcoin mempool fee rates by confirmation target and estimates the total fee in satoshis for a described transaction based on its virtual size.","exampleAgentPrompt":"How much will it cost in satoshis to send a Bitcoin transaction with 2 inputs and 2 outputs (native SegWit) if I want it confirmed within 3 blocks? Give me the fee for each confirmation target.","exampleUseCases":[{"title":"Wallet fee suggestion for user withdrawal","prompt":"I'm sending Bitcoin from my wallet — it has 1 input and 1 P2WPKH output. What's the cheapest fee in satoshis to get confirmed within 6 blocks right now, and what does the mempool look like?"},{"title":"Exchange batch payout fee planning","prompt":"We're doing a batch Bitcoin payout with 10 inputs and 25 outputs using native SegWit. Estimate the total fee in satoshis for next-block, 3-block, and 6-block confirmation targets so we can pick the most cost-effective option."},{"title":"DCA bot pre-send fee check","prompt":"Before my Bitcoin DCA bot sends its weekly transaction (1 input, 1 output, SegWit), can you check current mempool conditions and tell me exactly how many satoshis the fee will be for a 3-block confirmation?"}],"resultDescription":"Returns a list of confirmation targets (e.g. next block, 3 blocks, 6 blocks) each with the current fee rate in sat/vB, the estimated virtual size of the described transaction in vBytes, the computed total fee in satoshis, and mempool state information (e.g. pending transactions, congestion level).","failureModes":["Invalid or missing transaction description causes 400 error","Mempool data temporarily unavailable from upstream node","Unreachable confirmation target (too low or too high) returns an error","Malformed input counts or transaction type enum returns validation error"],"whenToPreferThis":"Choose this endpoint when you need both a live mempool fee rate AND a transaction-specific total fee estimate in a single call — it eliminates the two-step process of fetching rates and separately calculating vsize. Ideal for wallets, DCA bots, exchanges, or any agent that needs to present precise fee costs to a user before broadcasting a Bitcoin transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:36:51.745Z","isFirstParty":false}