Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect balance of earlier addresses #5497

Closed
shikita opened this issue Jul 8, 2019 · 9 comments
Closed

Incorrect balance of earlier addresses #5497

shikita opened this issue Jul 8, 2019 · 9 comments
Labels
topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py

Comments

@shikita
Copy link

shikita commented Jul 8, 2019

Latest version of client and server.

Tried to get balance of "1NY3Pr8EYgy74K5DwQCYkKsE4dYNeiGUGg" got 0 but on online block explorers it shows 50 BTC. what might be the reason?

@kyuupichan
Copy link
Contributor

It doesn't include P2PK payments

@shikita
Copy link
Author

shikita commented Jul 8, 2019

i got only little idea about P2PK. so there won't be any new p2pk payments ? is P2PK deprecated ?

@kyuupichan
Copy link
Contributor

It works fine. It is up to the people concerned how they receive payments; they may or may not choose to use P2PK or indeed P2PKH. The assignment of bitcoin addresses to P2PK payments is non-standard and a hack anyway, so I'd argue the block explorers are responsible for the confusion.

@shikita
Copy link
Author

shikita commented Jul 9, 2019

what is the reason for not including the P2PK payments in ElectrumX?
And how to get balance of those payments from ElectrumX?

@kyuupichan
Copy link
Contributor

They are there, you just need a different query

@shikita
Copy link
Author

shikita commented Jul 9, 2019

would you give an example to query P2PK transactions? Thank you very much for your patience.

@kyuupichan
Copy link
Contributor

See the ElectrumX protocol docs.

@shikita
Copy link
Author

shikita commented Jul 9, 2019

hmmm. Ok. Thank you.

@shikita shikita closed this as completed Jul 9, 2019
@SomberNight
Copy link
Member

Note there is currently no way to monitor ("import") a P2PK script in Electrum (but any script can be monitored server-side). You can however sweep coins from P2PK scripts.

A reasonable way to support importing these scripts would be what Bitcoin Core started doing recently:
https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md
i.e. using output script descriptors

@SomberNight SomberNight added the topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py label Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py
Projects
None yet
Development

No branches or pull requests

3 participants