-
Notifications
You must be signed in to change notification settings - Fork 39
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 address or balance on testnet #9
Comments
Can you give some more code examples?
The test cases should cover testnet as well. You can run I have been doing this on Python 3.5, possible there's something that breaks in Python 3.6. |
sorry, expected legacy (shorter) type of address, like in original git repo
founded another problem, I can't transfer funds
|
This is going to depend on the behavior of the one (or two?) upstream testnet APIs in use.
key.transactions will only show a list of transactions that have been on the network. I could be wrong on that, but creating a transaction (which only returns the hex and nothing else) definitely won't update that. You'll have to send to expect any change there. Even then, that feature could be broken, not really sure.
This error usually comes upstream. I want to improve logging here so that there's at least some warning with what happened. I'm going to dig into this some more. I would try to stick with the cashaddr format if you can, it's what the API is designed around. I use bitcash heavily on mainnet but some features are untested by me. If you see insufficient testing you can push up a PR with more test cases. |
This is coming from tbch.blockdozer.com. I am making a change to ignore keys without 'scriptPubKey'. Example:
|
Alright, I just pushed a commit (but no release) with some improvements. The Blockdozer API made some changes, breaking TX sends for testnet, and changing the unspent format. They don't have pubscripthash on unconfirmed transactions now. We could allow that to be set to None, but may cause other problems. You may want to contact Blockdozer and get them in the loop on this thread. Not sure how much of this affects mainnet and not just testnet. |
Also, |
Pushed one more commit. Tests can pass now if the timing is right. |
When I call key.address parameter, it returns PrivateKey, not address (found cashaddress solution)
also key.balance everytime returns 0
when trying to call key.get_unspents() after transaction, it crashes
The text was updated successfully, but these errors were encountered: