Unicorn Interactor is a Python-based module with a CLI interface that enables interactionwith the Unicorn blockchain. It currently supports the following functions:
- Transferring tokens (command:
transfer <target_addr> <amount> [memo]
) - Querying the balance of an account (command:
balance <address>
)
To install Unicorn Interactor, make sure you have Poetry installed, then run:
poetry install
You also need to create a .env
file in the root directory of the project with the following content:
MNEMONIC=<your mnemonic>
To use Unicorn Interactor, run the following command:
poetry run python ./unicorn_interactor [command] [arguments]
Available commands:
transfer
: Transfer tokens from one account to anotherbalance
: Query the balance of an account
Example:
poetry run python ./unicorn_interactor transfer unicorn1r8w2apxfl6hz5akzjn0lp4zg7z2a78a0qnzk4q 100000
- cosmpy
To set up the development environment:
- Clone the repository
- Run
poetry install
- Activate the virtual environment with
poetry shell
Although this project is just a simple POC and I do not intend to maintain/develop this further, contributions are welcome! Please feel free to submit a Pull Request. No guarantees are made about the quality of the code.
This project is licensed under the MIT License.