Skip to main content

Scripts for Golos blockchain

Project description

golos-scripts

test Documentation Status

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 post
  • change_password.py - change all account keys using random generated password or user-provided
  • calc_vesting_reward.py - calculate profit from vesting holdings
  • claim.py - claim balance from accumulative to tip or vesting
  • inflation.py - calculate current inflation or model long-term inflation
  • generate_keypair.py - just generate private and public keypair
  • transfer.py - transfer some money to another account
  • transfer_to_vesting.py - transfer GOLOS to vesting balance (Golos Power)
  • get_balance.py - display account balances
  • get_balance_multi.py - display balances of multiple accounts
  • estimate_median_price.py - look up current witnesses price feeds and calculate new expected median price
  • estimate_gbg_debt.py - script to estimate system debt in GBG, see ESTIMATE_GBG_DEBT
  • get_post.py - get and print post/comment
  • get_props.py - script to display global properties
  • get_median_props.py - script to display current votable parameters
  • get_voting_power.py - calculate current voting power of specified account
  • get_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 dates
  • get_conversion_requests.py - find all GBG conversion requests
  • get_feed_history.py - script to obtain GBG price feed history
  • get_miner_queue.py - script to display miner queue
  • get_median_voting.py - get witnesses voting for a particular chain param
  • get_inflation_voting.py - show voting for inflation targets properties
  • get_witness.py - script to obtain current info for specified witness
  • get_witnesses.py - script to display known witnesses, sorted by votes
  • post.py - publish post to the blockchain
  • sea_biom.py - print Golos Power for each sea habitant level
  • create_account.py - create child account
  • find_transfers.py - scan account history to find transfers
  • upvote.py - upvote/downvote post or comment
  • withdraw_vesting.py - withdraw from vesting balance of one account to specified account
  • withdraw_vesting_multi.py - withdraw from vesting balance of multiple accounts to specified account
  • delegate_vesting_shares.py - script to delegate vesting shares
  • witness_approve.py - vote for witness
  • witness_disapprove.py - remove vote from witness
  • update_witness.py - script to manipulate witness data in the blockchain, see UPDATE_WITNESS

Requirements

  • golos node 0.18+

Installation via poetry

  1. Install poetry
  2. Run poetry install to install the dependencies
  3. Copy common.yml.example to common.yml and change variables according to your needs
  4. Now you're ready to run scripts:
poetry shell
./script.py

Installation via pip

With pip you can install golosscripts package, which provides various functions and helpers:

pip install golosscripts

How to use

  1. Prepare working environment using virtualenv (see above)
  2. Copy common.yml.example to common.yml and change variables according to your needs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

golosscripts-1.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

golosscripts-1.0.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file golosscripts-1.0.0.tar.gz.

File metadata

  • Download URL: golosscripts-1.0.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.0 Linux/4.15.0-143-generic

File hashes

Hashes for golosscripts-1.0.0.tar.gz
Algorithm Hash digest
SHA256 64f49bc73b81f4607467fbef9504d23330ec2802276ca111a695b7b669c09f1f
MD5 d2a7555651d714908f987ac11c17dd03
BLAKE2b-256 3ed94081a684e76faf812802e986d6f064b2f0bcd83602bcd01c58c2d0234208

See more details on using hashes here.

File details

Details for the file golosscripts-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: golosscripts-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.0 Linux/4.15.0-143-generic

File hashes

Hashes for golosscripts-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d87c9fedce6492df20ace7e44d90424245023f09ce87ae7e83858db78947ba4
MD5 8dbf4b2cc4143d7d73859574050e24ca
BLAKE2b-256 67d37fa9aeeb9e4a719f980cd0853defb958c53e9ab869a0d3238a53f238c1c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page