This is a python scripts collection for golos blockchain network.
For documentation on reusable parts, pleasee see documentation on reathedocs.
donation.py
- make a donation for postchange_password.py
- change all account keys using random generated password or user-providedcalc_vesting_reward.py
- calculate profit from vesting holdingsclaim.py
- claim balance from accumulative to tip or vestinginflation.py
- calculate current inflation or model long-term inflationgenerate_keypair.py
- just generate private and public keypairtransfer.py
- transfer some money to another accounttransfer_to_vesting.py
- transfer GOLOS to vesting balance (Golos Power)get_balance.py
- display account balancesget_balance_multi.py
- display balances of multiple accountsestimate_median_price.py
- look up current witnesses price feeds and calculate new expected median priceestimate_gbg_debt.py
- script to estimate system debt in GBG, see ESTIMATE_GBG_DEBTget_post.py
- get and print post/commentget_props.py
- script to display global propertiesget_median_props.py
- script to display current votable parametersget_voting_power.py
- calculate current voting power of specified accountget_bandwidth.py
- calculate used bandwidth of the account. Can be used in scripting as monitoring tool (-w 75 -q
)get_vesting_withdraws.py
- find all vesting withdrawals with rates and datesget_conversion_requests.py
- find all GBG conversion requestsget_feed_history.py
- script to obtain GBG price feed historyget_miner_queue.py
- script to display miner queueget_median_voting.py
- get witnesses voting for a particular chain paramget_inflation_voting.py
- show voting for inflation targets propertiesget_witness.py
- script to obtain current info for specified witnessget_witnesses.py
- script to display known witnesses, sorted by votespost.py
- publish post to the blockchainsea_biom.py
- print Golos Power for each sea habitant levelcreate_account.py
- create child accountfind_transfers.py
- scan account history to find transfersupvote.py
- upvote/downvote post or commentwithdraw_vesting.py
- withdraw from vesting balance of one account to specified accountwithdraw_vesting_multi.py
- withdraw from vesting balance of multiple accounts to specified accountdelegate_vesting_shares.py
- script to delegate vesting shareswitness_approve.py
- vote for witnesswitness_disapprove.py
- remove vote from witnessupdate_witness.py
- script to manipulate witness data in the blockchain, see UPDATE_WITNESS
- golos node 0.18+
- Install poetry
- Run
poetry install
to install the dependencies - Copy
common.yml.example
tocommon.yml
and change variables according to your needs - Now you're ready to run scripts:
poetry shell
./script.py
With pip you can install golosscripts package, which provides various functions and helpers:
pip install golosscripts
- Prepare working environment using virtualenv (see above)
- Copy
common.yml.example
tocommon.yml
and change variables according to your needs