Skip to main content

Introduction: Why fees matter

Unlike traditional payment networks where fees are often static or hidden, Bitcoin operates on a dynamic fee market: Fees are determined by supply and demand for blockspace. Users compete to have their transactions included in blocks. Fees can fluctuate dramatically over short periods depending on network congestion.
In Bitcoin, you are not paying for the amount of bitcoin sent. You are paying for the size (in virtual bytes / vBytes) of your transaction.
Building a non-custodial Bitcoin wallet means you must account for fee dynamics at every step of your product design. Poor fee handling destroys user experience during congestion periods.

Core concepts in Bitcoin fee markets

How fee markets actually behave

During fee spikes: Cheap transactions get stuck for hours or days. Users who don’t understand fees will panic. Wallets that handle fee strategies poorly will get bad reviews.

Best practices for fee handling in non-Custodial wallets

  1. Offer Fee Options: Fast, Normal, Economical At send time, allow users to select their preferred speed vs cost tradeoff. Example UI:
    Use Bitnob’s fee estimation API to fetch real-time fee recommendations.
  2. Show Actual Fee Costs in Bitcoin and Fiat Do not just show users “10 sats/vByte”. Instead, calculate:
  • Estimated total transaction size in vBytes
  • Total fee in satoshis
  • Total fee in USD (or user’s local currency)
  • Example
  • Transaction Size: 200 vBytes
  • Fee Rate: 20 sats/vByte
  • Estimated Total Fee: 4,000 sats (~$1.80) Show the estimated fee clearly before broadcasting.
  1. Support Replace-by-Fee (RBF) If a user’s transaction gets stuck: Allow them to bump the fee using Bitcoin’s RBF feature. Present a “Speed up this transaction” option in the UI. Build your transaction building engine to mark transactions as RBF replaceable (sequence < 0xffffffff - 1). This greatly improves user experience during fee spikes.
  2. Consider Child-Pays-For-Parent (CPFP) In case the wallet spends from a stuck unconfirmed transaction: Automatically offer a CPFP option where a new transaction pays enough fee to pull both into confirmation. BDK and advanced libraries can help with CPFP constructions.
  3. Warn About Low-Fee Transactions
If a user tries to send with a very low fee: Show a warning: “This transaction may take several hours or days to confirm due to low fees. Proceed anyway?” Optionally, default users to Normal or Fast unless they explicitly choose Economy.

UX design for Bitcoin fees

Designing around fees is not just a technical problem. It’s a UX problem. Well-designed wallets like Muun, Phoenix, and BlueWallet handle fees gracefully.

Fee behavior in real world wallets (lessons)

Depending on your user type (consumer, advanced), you can pick whether to auto-handle or expose fine-grained controls.

Mempool monitoring (optional advanced strategy)

For large wallets: Monitor Bitcoin mempool via Bitnob (or internal nodes). Detect congestion. Adjust fee recommendation presets dynamically. Example: If mempool > 300 MB → Adjust Fast fee preset to +20% over normal. If mempool < 30 MB → Lower default fast fee by -10%. This dynamic behavior shows professionalism and protects user funds.

How Bitnob supports your fee strategy

Today: Bitnob offers dynamic fee estimation API: low, medium, high fee targets. Allows your wallet to fetch updated fee recommendations before every send. Future: Planned support for:
  • Mempool event webhooks
  • Fee market monitoring APIs
  • Enhanced Replace-by-Fee (RBF) helper APIs
  • CPFP construction templates
You can start simple now, and grow with Bitnob into advanced fee management over time.

Final thoughts

Fees are not optional details in Bitcoin UX. They are central to wallet experience and user satisfaction. Wallets that hide fees, guess wrong, or fail to help users during congestion will quickly lose trust. Wallets that respect users, explain fees well, and offer real control or intelligent defaults will dominate.

Quick developer checklist

  • Always fetch real-time fee estimates.
  • Offer Fast, Normal, and Economy options at minimum.
  • Display the total fee in both BTC and fiat terms.
  • Support Replace-by-Fee (RBF) where possible.
  • Plan CPFP flows internally for stuck transactions.
  • Watch mempool activity to adapt your strategy.