Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#5225·lnd

API endpoint /v1/balance/blockchain "total_balance" includes superseded RBF transactions

Author: danielalexiucCreated Apr 20, 2021Updated Sep 29, 2026
Labelswalletpossible-bug

Background

total_balance seems to include all unconfirmed RBF transactions in its total, even if they are replacing previous transactions.

Your environment

LND 0.11.0-beta

Steps to reproduce

I used "/v2/wallet/bumpfee" during a recent fee spike in Bitcoin, to replace a transaction with a higher fee paying one.

Each time I bumped it, the total_balance in /v1/balance/blockchain increased by the amount of the new RBF transaction - e.g. if I bumped it four times consecutively on an 8 BTC transaction, the total_balance shows a balance of 32 BTC.

Expected behaviour

Only the value of the most recent RBF transaction should be included in the total_balance

Actual behaviour

All RBF transactions (even superseded ones) are included in the total.

Source: lightningnetwork/lnd

View original on GitHubView discussion on GitHub