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

Does this library support testnet4? #198

Open
amccool opened this issue Mar 5, 2025 · 2 comments
Open

Does this library support testnet4? #198

amccool opened this issue Mar 5, 2025 · 2 comments

Comments

@amccool
Copy link

amccool commented Mar 5, 2025

newbie here.

I have a WIFs from a testnet4 wallet (sparrow) that has sats in it, but the balance and key.get_balance() is always zero.

looking at the code, I see testnet, but not testnet4 urls

should I be able to recover a testnet4 wallet and query its balance?

@amccool
Copy link
Author

amccool commented Mar 5, 2025

little more clarity

I am using key.wif_to_key() using the private key from this address 'tb1q28h58f3saq99evuynp20q4ss3cjcacaafua7jz'

however, when the key is returned its key.address value is 'mnzBexsdAKZ66iGQhNuYu84xNFj4zzCrQB'
where it should be:
'tb1q28h58f3saq99evuynp20q4ss3cjcacaafua7jz'

the returned key does have 'PrivateKeyTestnet' for the instance, and the public_key looks correct(i think)

@amccool amccool changed the title Does this library support testnet4 Does this library support testnet4? Mar 5, 2025
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
@amccool and others