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

Can't get balance and public key calculated wrong? #164

Open
eriktlu opened this issue Apr 1, 2022 · 1 comment
Open

Can't get balance and public key calculated wrong? #164

eriktlu opened this issue Apr 1, 2022 · 1 comment

Comments

@eriktlu
Copy link

eriktlu commented Apr 1, 2022

I am quite new to this but the documentation seemed quite straightforward so I don't understand where did I mess up or what's happening here.

from bit import PrivateKey

key = PrivateKey('PrivateKeyFromExodusWallet')

print(key.address)
print(key.get_balance('btc'))
print(key.balance)

The address that is shown is wrong.
My actual address for that private key: bc1qx34ptd6jldlge63tk5cvvfksg9dj8x8ehvtys9
What the print shows: 15n9DswZzpYZ6QyNzToUtZinbQB3jUdGTS

Balance is also 0 but shouldn't be.
I am using Exodus wallet. I can't see where I messed up here so can someone please help me out?

@b0r1ngx
Copy link

b0r1ngx commented Apr 24, 2022

I'm faced with problem like this too!

@eriktlu do you solved it, with this library or other?

Please answer admins (@mgaitan , @ofek , @b-kelly , @philsippl ), or @eriktlu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants