Bitcoin Forum

Other => Beginners & Help => Topic started by: Gorilla22 on September 29, 2022, 05:00:45 PM



Title: The balance of wallet doesn't match the sum of balances of addresses
Post by: Gorilla22 on September 29, 2022, 05:00:45 PM
Hi guys,

The situation:

B = the balance of wallet. The wallet's sync is at least 1 year more "new" than the last transaction, so it should be a real balance.
L = the sum of balances of labeled addresses, checked on blockchain. Labeled addresses are those I ever received btc to, and those which are visible in the wallet.
C = the sum of balances of change addresses.

Should be L + C = B

But in this case L + C = 0.98 B (98% of the balance of wallet)

2% of balance are somewhere else.

But where? Do you have any ideas?





Title: Re: The balance of wallet doesn't match the sum of balances of addresses
Post by: hosseinimr93 on September 29, 2022, 05:37:40 PM
You have probably missed an address when checking their balance on a block explorer and did a mistake in your calculation. That's the only thing comes to my mind.
Without any information about your addresses and your transactions, it's impossible to say what's exactly causing the difference.


Title: Re: The balance of wallet doesn't match the sum of balances of addresses
Post by: Gorilla22 on September 29, 2022, 05:43:47 PM
hosseinimr93,

Is it not possible that missing part of balance is somewhere on "reserve" addresses?


Title: Re: The balance of wallet doesn't match the sum of balances of addresses
Post by: hosseinimr93 on September 29, 2022, 06:00:41 PM
Is it not possible that missing part of balance is somewhere on "reserve" addresses?
Reserve addresses are the ones that haven't been used yet and bitcoin core will generate them if you go to "Receive" tab and click on "Create new receiving address" button.
As you said that your wallet is synced up to 1 year after your last transaction, I doubt any of your reserve addresses have been funded.


Title: Re: The balance of wallet doesn't match the sum of balances of addresses
Post by: Gorilla22 on September 29, 2022, 06:19:20 PM
Thank you hosseinimr93.


I re-checked all over again.
The same result.
It's an issue and a challenge.
There should be some explanation and some solution.
And it may be very simple.


Title: Re: The balance of wallet doesn't match the sum of balances of addresses
Post by: hosseinimr93 on September 29, 2022, 06:28:32 PM
There should be some explanation and some solution.
Go to console tab and use listunspent command.
With that command, you should see all the available UTXOs and associated addresses.
In this way, you may be able to find out the UTXO(s) that you are missing.


Title: Re: The balance of wallet doesn't match the sum of balances of addresses
Post by: Gorilla22 on September 29, 2022, 07:17:25 PM
hosseinimr93,

Thank you very much!!!!

I found it this way! Exactly the missing amount. But that address is not in dumpwallet file!

How come?

All txid except of 1 are listed with my addresses, matching together 98% of balance.
And 1 of them, exactly with the missing amount of 2% of balance, is showing an address which is not in dumpwallet, not among my addresses.

What could it mean?

Update: Got private key for this address through dumpprivkey .

The issue is solved.

Many thanks for your help hosseinimr93!

Is there any explanation for this situation?