ds-voting / bitshares-scripts

A set of scripts for Bitshares

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bitshares-scripts

This is a small scripts collection for doing various stuff in Bitshares

  • balances_as_btc.py - Summarize all assets on all accounts and show BTC value
  • cancel_all_orders.py - Cancel all orders on the specified account
  • create_account.py - Create new account with random password and providing all keys to stdout
  • get_account.py - Display account object
  • get_asset.py - Display asset object
  • get_balance.py - Display account balances
  • get_balance_multi.py - Display summarized balance of multiple accounts
  • get_feeds.py - Show price feeds for specified asset
  • get_keys.py - Generate private and public keys from account name and password
  • get_op_id.py - Display operation id numbers and corresponding name
  • get_witness.py - Display witness object
  • update_keys.py - Change account keys using generated random password and providing all keys to stdout

Installation using pipenv

  1. Make sure you have installed required packages: apt-get install gcc make libssl-dev
  2. Install pipenv or:
# Install pip and pipenv
sudo apt install python3-pip python3-dev
pip3 install --user pipenv

# Add pipenv (and other python scripts) to PATH
echo "PATH=$HOME/.local/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
  1. Run pipenv install to install the dependencies
  2. Copy common.yml.example to common.yml and change variables according to your needs
  3. Now you're ready to run scripts:
pipenv shell
./script.py
exit

Note: some scripts are sending transactions, you need to add private active keys for your accounts via uptick addkey

About

A set of scripts for Bitshares

License:MIT License


Languages

Language:Python 100.0%