← Back to directory

Work out a Bitcoin transaction's size and fee before you build it: give inputs a...

https://agents.204-168-199-108.sslip.io/v1/chain/btc-fee-calc

Overview

Work out a Bitcoin transaction's size and fee before you build it: give inputs and outputs as counts and types ("2 p2wpkh, 1 p2tr"; types p2pkh/legacy, p2sh-p2wpkh, p2wpkh/segwit, p2tr/taproot, p2wsh/multisig) and get the estimated vsize and weight, the fee in sats, BTC and USD at next-block, 30-min, 1-hour and economy rates (live from mempool.space) or at your own fee_rate, and how much you would save with taproot inputs.

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network Base
Category crypto/transactions
Provider Bitcoin tx fee calculator
Source bazaar
Indexed 2026-12-01 21:27:22

Health

Status healthy
Latency (p50) 136ms
Uptime (30d) 100.0%
Reliability Score 97/100
Last Checked 2026-12-05 01:35:21
Last Healthy 2026-12-05 01:35:21
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "inputs": "3 p2wpkh", "outputs": "1 p2tr, 1 p2wpkh" }, "type": "http" }

Output Schema

{ "example": { "btc_usd": 91250, "chain": "bitcoin", "est_vsize": 289, "est_weight": 1156, "fees": { "economy": { "fee_btc": 0.00000289, "fee_sats": 289, "fee_usd": 0.26, "sat_per_vb": 1 }, "half_hour": { "fee_btc": 0.00000867, "fee_sats": 867, "fee_usd": 0.79, "sat_per_vb": 3 }, "hour": { "fee_btc": 0.00000578, "fee_sats": 578, "fee_usd": 0.53, "sat_per_vb": 2 }, "next_block": { "fee_btc": 0.00001156, "fee_sats": 1156, "fee_usd": 1.05, "sat_per_vb": 4 } }, "input_types": { "p2wpkh": 3 }, "inputs": 3, "note": "Standard size estimates (single-sig; p2wsh = 2-of-3 multisig). Real size can differ by a few vbytes (signature length).", "output_types": { "p2tr": 1, "p2wpkh": 1 }, "outputs": 2, "saving_if_taproot_inputs_pct": 11.1, "segwit": true, "source": "mempool.space recommended fees", "time": "2026-11-30T04:43:03.479Z" }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 01:35:21 healthy 402 111ms
2026-12-05 00:58:30 healthy 402 136ms
2026-12-04 18:42:58 healthy 402 394ms