bit icon indicating copy to clipboard operation
bit copied to clipboard

Can't get balance and public key calculated wrong?

Open eriktlu opened this issue 2 years ago • 1 comments

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?

eriktlu avatar Apr 01 '22 10:04 eriktlu

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

b0r1ngx avatar Apr 24 '22 12:04 b0r1ngx