Welcome to the documentation for Pantos Client CLI, a powerful tool for engaging with the Pantos system. This documentation aims to provide developers with comprehensive information on how to use the features the CLI offers.
The Pantos Client CLI offers the following functionalities:
- Retrieve the balance of a token
- Retrieve the service node bids
- Transfer tokens
Please make sure that your environment meets the following requirements:
The CLI requires a private key encrypted with a password.
Since, for the moment, the Pantos protocol supports only EVM blockchains, only an Ethereum account keystore file is sufficient. It can be created with tools such as https://vanity-eth.tk/.
One of the most significant advantages of using Pantos is that the protocol has been designed to require minimal user friction when cross-chain operations are performed. Therefore, when using the Pantos products, you must top up your wallet only with PAN tokens.
The Pantos Client CLI supports Python 3.10 or higher. Ensure that you have the correct Python version installed before the installation steps. You can download the latest version of Python from the official Python website.
The Pantos Client CLI has been tested with the library versions specified in poetry.lock.
Poetry is our tool of choice for dependency management and packaging.
Installing: https://python-poetry.org/docs/#installing-with-the-official-installer or https://python-poetry.org/docs/#installing-with-pipx
By default poetry creates the venv directory under under {cache-dir}/virtualenvs
. If you opt for creating the virtualenv inside the project’s root directory, execute the following command:
poetry config virtualenvs.in-project true
Clone the repository to your local machine:
$ git clone https://github.com/pantos-io/client-cli.git
$ cd client-cli
$ virtualenv env
$ source env/bin/activate
$ pip install poetry
Create the virtual environment and install the dependencies:
$ poetry install --no-root
The CLI comes with two configurations.
-
A configuration for the Pantos Client Library can be found in client-library.yml. The library already has a set configuration for our testnet environment, but feel free to adapt it to your needs.
-
A configuration for the Pantos Client CLI can be found in client-cli.yml. Make sure to replace the keystore file path and the password with your private keystore.
The Pantos Client CLI can be used by executing the pantos-client.sh bash script.
$ pantos-client [-h] {balance,bids,transfer} ...
positional arguments:
{balance,bids,transfer}
balance show the balance of your accounts
bids list the available service node bids
transfer transfer tokens to another account (possibly on another blockchain)
Check the code of conduct.