With the release of piston 0.4.3a0 and python-steem 0.4.3, the library and command line application now support the interaction with the GOLOS network.
Changes
The changes required can be summarized to:
- Added GOLOS' chain-id to allow proper signing of transactions
- Modify some of the Operations to also distinguish network prefixes
- Add a way to distinguish keys in different networks
- Some minor differences in the API
How to use piston
You can install piston using pip3
(the package manager for python3):
pip3 install --user --upgrade steem-piston==0.4.3a0
This will install piston 0.4.3a0 and pysteem 0.4.3.
After that, you need to set the default node to an API that works on GOLOS:
piston set node wss://ws.golos.io
Now, piston (and pysteem) are setup to connect to GOLOS, you can check by running
piston balance golos
To add your own account, you can either use
piston addkey (and provide a raw wif key), or
piston importaccount <accountname> (and provide the password to your account - owner key won't be stored by default)
More information about available calles be be found via
piston --help
or on the official piston.rocks webpage.
How to use pysteem
If you want to use the library with GOLOS (instead of STEEM) you can either change the default node via piston set node x
(as described above) or do so programatically:
from steem import Steem
golos = Steem('wss://ws.golos.io')
More documentation about how to use the library can be found on it's own documentation webpage.
Now, have fun!
This post has been ranked within the top 25 most undervalued posts in the first half of Feb 02. We estimate that this post is undervalued by $9.07 as compared to a scenario in which every voter had an equal say.
See the full rankings and details in The Daily Tribune: Feb 02 - Part I. You can also read about some of our methodology, data analysis and technical details in our initial post.
If you are the author and would prefer not to receive these comments, simply reply "Stop" to this comment.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for your awesome work. Piston library was essential thing for us to start
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit