Author

Topic: Electrum+EPS+Trezor - All connected but zero balance? (Read 152 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Quote
If OP add (rather than change) Electrum wallet from time to time, then EPS become useless since you need to rescan each time you open different wallet. Using different Electrum server software (which index all address) is far more practical.

Is there another software you would recommend? Just seen EPS talked about the most but open to other suggestions

I'm more familiar with ElectrumX, so i would recommend ElectrumX. Besides, ElecrtumX is most popular software for Electrum server, so you could get more help if you encounter any problem or have question.

Take note there are multiple options to setup ElectrumX. If you use Windows or WSL, not all options are available for you.
HCP
legendary
Activity: 2086
Merit: 4361
Personally... I run "electrs". (see also: https://bitcointalksearch.org/topic/an-efficient-re-implementation-of-electrum-server-in-rust-4589797)

I have found that it is, more or less, a happy medium between EPS and ElectrumX... it's small enough that the setup and resource requirements are relatively small compared with say ElectrumX (initial sync is ~1.5 hours, storage is maybe 10% of Bitcoin Core requirements), but it also has enough features/usability that it isn't quite as constrained as EPS... (ie. you can easily add new wallets to Electrum, import new private keys etc and it doesn't bat an eyelid... or require reconfiguring)

I actually run it on Ubuntu under WSL (windows subsytem for linux) and it is able to read the block data from my Windows based Bitcoin Core node. My Windows based Electrum client is then able to connect to electrs using the --oneserver option...

et voilà... my own "personal" (and extensible) Electrum server, connected to my own "personal" Bitcoin Core node.
newbie
Activity: 11
Merit: 1
Quote
I've only used ElectrumX, it appears to be the most common server implementation.  I've had it running for months without issue.  Configuration options require a bit of research, but once it's set up it's pretty bullet proof.  It requires a full node, unpruned, with txindex turned on, so it'll require quite a bit of diskspace for the whole setup.

Cool, I have a full unpruned node with txindex so not a problem. Not super technical though so not sure if the configuration options will be a hurdle, I'll stick with the working setup for now while researching. Thanks again for the insight and help
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
Is there another software you would recommend? Just seen EPS talked about the most but open to other suggestions

I've only used ElectrumX, it appears to be the most common server implementation.  I've had it running for months without issue.  Configuration options require a bit of research, but once it's set up it's pretty bullet proof.  It requires a full node, unpruned, with txindex turned on, so it'll require quite a bit of diskspace for the whole setup.

I didn't use EPS to connect to my node and let Electrum choose another server. This helped balances populate.
Doesn't this ruin the entire purpose of EPS? To prevent connecting to other electrum servers?

I suggested he do that merely as an experiment to determine if the issue was with his EPS configuration.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Rescan, not reindex.
Yes, sorry. My bad.

After reading the above info, it helped me understand how they all interact. Not positive of the exact order of things, but this time I made sure to run EPS without rescan first, then saw Bitcoin Core import the addresses, then ran EPS with rescan and balances populated in electrum.
Okay, I was just curious because you said that you configured EPS and you rescanned it many times. So this is what you did. You ran EPS without rescan, you imported your addresses on Bitcoin Core and then you rescanned.

I didn't use EPS to connect to my node and let Electrum choose another server. This helped balances populate.
Doesn't this ruin the entire purpose of EPS? To prevent connecting to other electrum servers? Since I setup EPS, I'm starting my electrum with:
Code:
electrum --oneserver --server localhost:50002:s
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Besides the fact that you'll have to re-index the block chain every time you create a new wallet, is there any other downsides of EPS? I personally find it very efficient if you don't want to require third-party servers.
Rescan, not reindex.

EPS is okay for most uses as it just serves as a data source for Electrum clients, so there really isn't anything to criticize there. If you need your personal server which is easier to setup and has lower resource requirements, then this is it.
Is there another software you would recommend? Just seen EPS talked about the most but open to other suggestions
ElectrumX is the most common implementation used by Electrum servers.
newbie
Activity: 11
Merit: 1
Quote
You mean that your EPS listens to your full node and your electrum is connected to your EPS, right?

Yeah thats correct.

Quote
So you didn't make any changes and it just worked, like magic? If you did change anything, you should write it here. There may be people searching for a solution about this problem in the future, and your answer could satisfy them.

Quote
"The first time the EPS starts, it’ll import all configured addresses as watch-only into the Bitcoin node, and then exit. If your wallet contains old transactions, you’ll need to rescan the local copy of the blockchain for any transactions in your wallet."

After reading the above info, it helped me understand how they all interact. Not positive of the exact order of things, but this time I made sure to run EPS without rescan first, then saw Bitcoin Core import the addresses, then ran EPS with rescan and balances populated in electrum.

Quote
As for the strikethrough text, why are you referring to servers? EPS is a personal server that connects only to your node. There may be an either false formulation from your side (maybe a misunderstanding?) or a false interpretation of your text from my side.

I didn't use EPS to connect to my node and let Electrum choose another server. This helped balances populate.

Quote
If OP add (rather than change) Electrum wallet from time to time, then EPS become useless since you need to rescan each time you open different wallet. Using different Electrum server software (which index all address) is far more practical.

Is there another software you would recommend? Just seen EPS talked about the most but open to other suggestions
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Have electrum connected to my full node and everything looks fine.
You mean that your EPS listens to your full node and your electrum is connected to your EPS, right?

Did one more rescan and it worked. Again, thank you and appreciate all the insight!
So you didn't make any changes and it just worked, like magic? If you did change anything, you should write it here. There may be people searching for a solution about this problem in the future, and your answer could satisfy them.

As for the strikethrough text, why are you referring to servers? EPS is a personal server that connects only to your node. There may be an either false formulation from your side (maybe a misunderstanding?) or a false interpretation of your text from my side.

EPS can be a bit "problematic" like that if you think you're going to be adding new wallets to Electrum from time to time Undecided
Besides the fact that you'll have to re-index the block chain every time you create a new wallet, is there any other downsides of EPS? I personally find it very efficient if you don't want to require third-party servers.
HCP
legendary
Activity: 2086
Merit: 4361
By default, EPS runs with a very specific set of addresses (you have to configure each address you want to know about, or provide a master public key etc)... so it only maintains an index of those addresses and their associated transactions. If you then add new addresses into Electrum (not covered by the ones already provide to EPS or generated from the master public key)... then EPS needs to be updated with these new addresses, so it can then get that address info from your node.

This often means "rescanning" with EPS several times to get updated info...

EPS can be a bit "problematic" like that if you think you're going to be adding new wallets to Electrum from time to time Undecided
newbie
Activity: 11
Merit: 1
Update:

Connecting to another server did the trick. Wondering why it wouldn't work with my node when everything is green and not showing issues..

Also if there is another way that everyone is using their hardware wallets with their full node that would be cool too


Did one more rescan and it worked. Again, thank you and appreciate all the insight!
newbie
Activity: 11
Merit: 1
Quote
It's not.  Trezor (any hardware wallet) only shares the xpub (master public key) with Electrum.  No private keys are ever shared, that's the point of using a hardware wallet.

Yeah exactly.. so just wondering why Electrum wouldn't see the addresses I rescanned as being unspent. Thought maybe there was something I was missing. Its like they're stuck in watch only mode or something?

Yeah Electrum Personal Server. Everything looks like its communicating fine, just not showing a balance. I haven't tried connecting to another server, maybe thats next if this final rescan doesn't help
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
It must be a problem with Electrum communicating with Trezor to know that it has the private keys available to sign those UTXOs? Not sure how those two talk to each other to get that information across if thats even how it works

It's not.  Trezor (any hardware wallet) only shares the xpub (master public key) with Electrum.  No private keys are ever shared, that's the point of using a hardware wallet.

When you say EPS do you mean Electrum Personal Server?  I've never used Electrum Personal Server, so I can't comment on any configuration settings, but I would suspect that's the issue.  If you allow your Electrum client to select a server automatically does is show the correct balance?
newbie
Activity: 11
Merit: 1
Thanks everyone for the replies.

I actually have successfully rescanned several times. Everything looks fine but it always shows as 0 transactions found. It populates the correct addresses in Electrum, but it doesn't show any balance.

It must be a problem with Electrum communicating with Trezor to know that it has the private keys available to sign those UTXOs? Not sure how those two talk to each other to get that information across if thats even how it works

Quote
The first time the EPS starts, it’ll import all configured addresses as watch-only into the Bitcoin node, and then exit. If your wallet contains old transactions, you’ll need to rescan the local copy of the blockchain for any transactions in your wallet.

Maybe this isn't working right because its making me select a wallet_filename? In the guide you posted, the wallet_filename is blank. I can only get it to run if I put the wallet_filename equal to a wallet.dat I already have in Bitcoin Core
jr. member
Activity: 45
Merit: 17
The first time the EPS starts, it’ll import all configured addresses as watch-only into the Bitcoin node, and then exit. If your wallet contains old transactions, you’ll need to rescan the local copy of the blockchain for any transactions in your wallet.

Do this by dragging config.ini onto the batch script electrum-personal-server-rescan.bat. That should open a command prompt where you’ll be asked for a date to rescan from. Enter a date (in the format DD/MM/YYYY) from where you would like to start importing addresses (the further back, the longer time it will take) and hit return. You’ll get a suggestion of a block height to start from. Type y and hit return. Wait for the rescanning to finish (the server will exit once finished).

If you don’t rescan and open an old wallet, the balance will show 0 as it doesn’t know about any old transactions (you can always do a rescan later to see the transactions).

Now you can start the server “for real”.


Source https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_63_eps-win.html#rest-of-the-configini-file
member
Activity: 166
Merit: 16
I once used EPS.
Yes, you need to put the addresses or master pub keys in the config.
Then it may ask you to scan the txs after the date you type in.
And the user needs to finish that scanning to see the correct balances on Electrum.


Have electrum connected to my full node and everything looks fine.
Electrum can not connect to full node, electrum is a SPV wallet, but I guess you meant electrum has fully sychronized with the blockchain.

OP uses EPS which helps electrum connect to the full node that OP he himself runs.
newbie
Activity: 11
Merit: 1
Thanks for the reply!

1. Wallet is showing synchronized
2. Not showing any transaction history on Electrum - Trezor suite shows correct balances
3. Using the latest version of Electrum

I noticed I had to put a value for wallet_filename in EPS config.ini, but looks like that is supposed to be blank by default? It won't let me run EPS unless I put the name of a Bitcoin Core wallet.dat file in there, so not sure how to proceed if that is the issue.

Maybe not, just a guess
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
Have electrum connected to my full node and everything looks fine.
Electrum can not connect to full node, electrum is a SPV wallet, but I guess you meant electrum has fully sychronized with the blockchain.

Issue is.. Electrum is showing a balance of zero, when this Trezor has UTXOs.
Still make sure your wallet is fully sychronized with the blockchain
Check your transaction history to check if there is any unauthorized sent transaction(s)
Maybe you are using a very old version of electrum, try to update your electrum from https://electrum.org and verify its signature

I believe trying these will be helpful.
newbie
Activity: 11
Merit: 1
Have electrum connected to my full node and everything looks fine. Set up a wallet with a Trezor, derivation path and xpub are correct. Correct addresses are being generated in Electrum too.

Issue is.. Electrum is showing a balance of zero, when this Trezor has UTXOs. Everything seems to be working and connected so not sure what to investigate next, any suggestions would be greatly appreciated.
Jump to: