Author

Topic: Any way to display my total bitcoin balance over multiple electrum wallets? (Read 168 times)

legendary
Activity: 2352
Merit: 6089
bitcoindata.science
Just wondering as I have a bunch of wallets but have to go into each wallet to check each balance individually.

I was just wondering if there was a safe way to display my total bitcoin balance easily in one total.

Thanks
In my mind, you are either going to use cointracking apps such as coingecko and blockfolio OR manually input your bitcoin addresses on a web application to see the balance of multiple bitcoin addresses at the same time[1].

[1] https://bitcoindata.science/bitcoin-balance-check.html. (Credits to @bitmover)

Thank you for mentioning this tool.

I created it because I was in the same situation as the OP.

I had a bunch of different addresses from different wallets and I need to track the overall value from time to time. It was hard to do so manually, so I created this tool.

It has been proven useful for many people, as most of this domain visits are to that tool. I am open to suggestions if you need something diffferent
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
I was just wondering if there was a safe way to display my total bitcoin balance easily in one total.
If you have a fully synced Bitcoin Core with complete blockchain (not pruned),
you can create a watching-only descriptor wallet and import all of your master public keys with importdescriptors command.
You can still do that with a pruned blockchain though but you'll have to resync from scratch when you need to rescan the blockchain for balance.

Here's the guide on how to do it: https://bitcointalksearch.org/topic/m.60178631

If you're limited to Electrum, then it's not possible since it can't accept multiple master public/private keys/seed.
legendary
Activity: 2268
Merit: 18711
Why not put all your investment information (Amount of BTC and price at which you bought it) into a google sheet or even a simpler way, use Coinmarketcap's Portfolio option?
Because by using such methods you can absolutely guarantee that a bunch of third parties will also know all the addresses you own and track all the transactions you make.
copper member
Activity: 1470
Merit: 1609
Bitcoin Bottom was at $15.4k
Why not put all your investment information (Amount of BTC and price at which you bought it) into a google sheet or even a simpler way, use Coinmarketcap's Portfolio option?
It will keep track of your investment value without you having to turn on your PC again and again.

Just download it on your phone and be ready to open your portfolio page almost 100 times a day, good luck.
hero member
Activity: 714
Merit: 521
Just wondering as I have a bunch of wallets but have to go into each wallet to check each balance individually.

I was just wondering if there was a safe way to display my total bitcoin balance easily in one total.

Thanks

As some have already advised, try get an electrum wallet and you can import those wallets on the electrum but you have to be sure that those other wallets you're intending to import where decentralized wallets with their respective keys, seed phrase and private keys, which means you cannot import a centralized wallet on this because they are having your keys in their custody, then after you might have imported them, ensure you name each wallet accordingly as you're importing them to avoid mixing up one wallet from the other.
legendary
Activity: 2268
Merit: 18711
Another option is to use crypto portfolio tracking apps, such as Delta App, CoinStats, CoinTracking, Blockfolio, Coinigy, etc.
The problem with this suggestion is the same as the problem with the other suggestions made above such as a blockchain explorer or Google sheets, as you rightly point out - privacy. As the old saying goes, if you are getting something for free, then you are the product. These services are almost certainly harvesting your data and sharing and selling that with third parties. Setting up an Electrum watch only wallet synced via your own node avoids all this.

If you do want to use a crypto portfolio app, then I would suggest manually entering aggregated balances rather than linking it with your wallet or specific transactions, so it cannot track your specific coins.

Would it make sense to use listunspent[1] afterwards? This would allow the OP to get the current balance of each address, albeit it wouldn't provide him with a total sum. Is there any command that he could use in CLI to sum each value from the provided addresses and spit the result at the end?
He can use the command listaddresses(balance=True) to get a list of all addresses alongside their individual balance, or the command getbalance() to get a total wallet balance.

The reason I suggested just doing listaddresses() on its own is because even if he imports a bunch of empty addresses, it means his watch only wallet will automatically stay synced with all this other wallets as he uses more addresses (until he exceeds the gap limit on a wallet, in which case he will need to import the next set of addresses).

OP: In order to achieve a better degree of privacy, I would recommend you to run your own node and then you could retrieve this information without relying on any external entity by using Bitcoin Core CLI.
I obviously agree as discussed above, but actually if OP is going to be running his own node anyway, then he could avoid the Electrum watch only wallet and simply use Core, importing the master public key from each of his Electrum wallets in to a single Bitcoin Core descriptor wallet.
legendary
Activity: 1148
Merit: 3117
Code:
listaddresses()

It will spit out a list of all your receiving and change addresses visible on the addresses tab, so you can copy the whole list at once. You'll still need to manually remove the " and , symbols before attempting to import them, though.
Would it make sense to use listunspent[1] afterwards? This would allow the OP to get the current balance of each address, albeit it wouldn't provide him with a total sum. Is there any command that he could use in CLI to sum each value from the provided addresses and spit the result at the end? JQ[1] seems very promising to do this kind of filtering but I'm not sure what the command line could be:
Quote
Use JSON for Simple Calculation by Value

Usage Example: Automatically calculate the value of the UTXOs used in a transaction.


You can now go one step further, and request the .amount (or any other JSON key-value) from the UTXOs you're retrieving.

This example repeats the usage the $usedtxid and $usedvout arrays that were set as follows:

$ usedtxid=($(bitcoin-cli decoderawtransaction $rawtxhex | jq -r '.vin | .[] | .txid'))
$ usedvout=($(bitcoin-cli decoderawtransaction $rawtxhex | jq -r '.vin | .[] | .vout'))

The same for script can be used to step through those arrays, but with an added pipe in the JQ that outputs the amount value for each of the UTXOs selected.

$ for ((i=0; i<${#usedtxid
  • }; i++)); do txid=${usedtxid}; vout=${usedvout}; bitcoin-cli listunspent | jq -r '.[] | select (.txid | contains("'${txid}'")) | select(.vout | contains('$vout')) | .amount'; done;
0.9
0.4

At this point, you can also sum up the .amounts with an awk script, to really see how much money is in the UTXOs that the transaction is spending:

$ for ((i=0; i<${#usedtxid
  • }; i++)); do txid=${usedtxid}; vout=${usedvout}; bitcoin-cli listunspent | jq -r '.[] | select (.txid | contains("'${txid}'")) | select(.vout | contains('$vout')) | .amount'; done | awk '{s+=$1} END {print s}'
1.3

Whew!
OP: In order to achieve a better degree of privacy, I would recommend you to run your own node and then you could retrieve this information without relying on any external entity by using Bitcoin Core CLI.

[1]https://thunderbiscuit.github.io/Learning-Bitcoin-from-the-Command-Line/04_2__Interlude_Using_JQ.html
legendary
Activity: 1526
Merit: 1359
I was just wondering if there was a safe way to display my total bitcoin balance easily in one total.

Some methods have already been mentioned by others, for example, importing multiple addresses into one Electrum wallet, in watch-only mode.

Another option is to use crypto portfolio tracking apps, such as Delta App, CoinStats, CoinTracking, Blockfolio, Coinigy, etc. These apps allow you to manage and track your cryptocurrency holdings across various wallets and exchanges. You can import your wallet addresses, master public keys or connect directly to supported exchanges to automatically sync your transactions and balances. They provide real-time price updates, portfolio performance analysis, and even customizable alerts to keep you informed about market movements.

Be careful, though, as there have been reports suggesting that some apps might collect and share user data with blockchain analytics companies. I would not use these apps if anonymity is of utmost importance to me.
mk4
legendary
Activity: 2870
Merit: 3873
Paldo.io 🤖
Something different but not sure if you'd want it: use Google sheets. Not sure what API to use but I'm sure there's a free one out there that you can use. Basically scrape your address balances, then just use =SUM( to get the total amount of BTC you have.
legendary
Activity: 2268
Merit: 18711
Given that you cannot import multiple master public keys in to the same wallet in Electrum, then your only way of doing this will be to import all the addresses individually from each wallet in to a single watch only wallet.

Rather than copying and pasting each address one by one, in each wallet you want to watch go to the console (if you don't see the console tab then click View -> Show Console) and enter the following command:

Code:
listaddresses()

It will spit out a list of all your receiving and change addresses visible on the addresses tab, so you can copy the whole list at once. You'll still need to manually remove the " and , symbols before attempting to import them, though.
legendary
Activity: 1904
Merit: 1563
In my mind, you are either going to use cointracking apps such as coingecko and blockfolio OR manually input your bitcoin addresses on a web application to see the balance of multiple bitcoin addresses at the same time[1].

[1] https://bitcoindata.science/bitcoin-balance-check.html. (Credits to @bitmover)
legendary
Activity: 2380
Merit: 5213
You can import some public keys into one Electrum wallet, watch-only.
For creating a watch-only wallet in electrum, you must import your address(es) or your master public key. There is no way to import a public key into electrum.
OP must import his/her addresses to create a watch-only wallet.

After that, you will total balance of all your wallets but because it is a Watch-only wallet, you only can watch its balance and can not spend your bitcoin.
If you want the fund to be spendable, you can import your private keys instead of your addresses.
staff
Activity: 3500
Merit: 6152
-snip-

From my understanding, he has multiple wallets, not addresses so although this solution works, it's probably not the fastest nor the most convenient way.
legendary
Activity: 2310
Merit: 4085
Farewell o_e_l_e_o
You can import some public keys into one Electrum wallet, watch-only.

After that, you will total balance of all your wallets but because it is a Watch-only wallet, you only can watch its balance and can not spend your bitcoin.

How?
File > New/ Restore
Create a new wallet
Import Bitcoin addresses or private keys.

With your question, copy and paste all Bitcoin addresses you want to import, each address per line, click Next to finish.
jr. member
Activity: 38
Merit: 50
Just wondering as I have a bunch of wallets but have to go into each wallet to check each balance individually.

I was just wondering if there was a safe way to display my total bitcoin balance easily in one total.

Thanks
Jump to: