An open API service indexing awesome lists of open source software.

https://github.com/ladopixel/tERGminal

Simple application written in python to interact with the Ergo blockchain from the terminal.
https://github.com/ladopixel/tERGminal

Last synced: 6 days ago
JSON representation

Simple application written in python to interact with the Ergo blockchain from the terminal.

Awesome Lists containing this project

README

        

tERGminal


logo Ergo

Simple application written in python to interact with the Ergo blockchain from the terminal.

Undoubtedly, the ergpy repository has been fundamental for the creation of tERGminal.

tERGminal screenshot

Quick Start

Prepare installation

~~~
sudo apt update && sudo apt upgrade -y
sudo apt install git pip openjdk-8-jre -y
~~~

Pi Zero

We need to explicity call Java 8 otherwise you will receive a "Server VM is only supported on ARMv7+ VFP" error. To correct this run the following ([credit](https://raspberrypi.stackexchange.com/questions/104203/unable-to-run-java-on-raspberry-pi-zero-vm-is-only-supported-on-armv7-vfp)):

~~~
sudo update-alternatives --config java
# Then select Java 8's menu number
~~~

Install dependencies

~~~
pip install JPype1 ergpy
~~~

Clone repo

~~~
git clone https://github.com/ladopixel/tERGminal.git
~~~

Launch tERGminal

~~~
cd tERGminal
python ergpyMenu.py
~~~

Progress



  • ✅ 1 Configure wallet.

  • ✅ 2 Send ERG to a wallet.

  • ✅ 3 Send ERG to a random wallet (It use the array with addresses that appear in the whiteList.py file).

  • ✅ 4 Send NFT to wallet.

  • ✅ 5 Send NFT to a random wallet (It use the array with addresses that appear in the whiteList.py file).

  • ✅ 6 Send NFT random to a wallet.

  • ✅ 7 Create token.

  • ✅ 8 Create NFT.

  • ✅ 9 Info Ergo.

  • ✅ 10 Info Wallet.

  • ✅ 11 Info Token.

  • ✅ 12 Info transaction.

  • ✅ 13 Send tokens to multiple addresses (It use the array with addresses that appear in the whiteList.py file).

  • ✅ 14 Send multiple tokens to one address.

  • ✅ 15 Burn tokens.

  • ✅ 0 Exit.

Modifications


The application is divided into 3 files:



  • ergpyMenu.py

  • colorsPython.py

  • whiteList.py


There is not much to explain about these three files, colorsPython.py is for the graphic part on the screen, whiteList.py is the place where the addresses for the random wallet options are added and ergpyMenu.py is the file that contains the logic.

Feel free to make all the modifications you want to find out how it really works. Ask any questions.

Usage


Most of the options offered by this application are covered by the official Ergo wallets. The main idea that crossed my mind for the creation of tERGminal is to be able to carry a Swiss army knife of ERGO on a Raspberry Pi Zero when traveling.
tERGminal does not store any type of data, you can check it yourself by looking at its code before executing it.


Remember that this is a non-audit application, although I want you to have no problems with your ERGs, I recommend that the seed phrase you enter (it will never be stored) corresponds to a wallet that is not your main wallet.


For the options that display information (9, 10 and 11) there is no need to configure the wallet.