HyperPaxeer Network CLI
hyperpaxd is the all-in-one command-line interface (CLI). It allows you to run an Paxeer Network node, manage wallets and interact
with the Paxeer Network network through queries and transactions. This introduction will explain how to install the hyperpaxd
binary onto your system and guide you through some simple examples how to use hyperpaxd.
Prerequisites
Go
Paxeer Network is built using Go version1.20+. Check your version with:
GOPATH
is correctly configured by running the following command and adding it to your shell startup script:
jq
Paxeer Network scripts are using jq version1.6+. Check your version with:
Installation
You can download the latest binaries from the repo and install them, or you can build and install thehyperpaxd binaries from source or using Docker.
Download the binaries
- Go to the releases section of the repository
- Choose the desired release or pre-release you want to install on your machine
- Select and download from the
Assetsdropdown the corresponding tar or zip file for your OS - Extract the files. The
hyperpaxdbinaries is located in thebindirectory of the extrated files - Add the
hyperpaxdbinaries to your path, e.g. you can move it to$(go env GOPATH)/bin
hyperpaxd binaries have been successfully installed:
Build From Source
Clone and build the Paxeer Network from source usinggit. The <tag> refers to a release tag on Github. Check the latest Paxeer Network
version on the releases section of the repository:
hyperpaxd: command not found error message is returned, confirm that you have configured Go correctly.
:::
Docker
When it comes to using Docker with Paxeer Network, there are two options available: Build a binary of the Paxeer Network daemon inside a dockerized build environment or build a Docker image, that can be used to spin up individual containers running the Paxeer Network binary. For information on how to achieve this, proceed to the dedicated page on working with Docker.Run an Paxeer Network node
To become familiar with Paxeer Network, you can run a local blockchain node that produces blocks and exposes EVM and Cosmos endpoints. This allows you to deploy and interact with smart contracts locally or test core protocol functionality. Run the local node by executing thelocal_node.sh script in the base directory of the repository:
~/.tmp-hyperpaxd/config/config.toml.
If you have previously run the script, the script allows you to overwrite the existing configuration and start a new
local node.
Once your node is running you will see it validating and producing blocks in your local Paxeer Network blockchain:
Using hyperpaxd
After installing the hyperpaxd binary, you can run commands using:
-h, --help command available
--home
flag. In the following examples we will be using the default config for a local node, located at ~/.tmp-hyperpaxd.
Manage wallets
You can manage your wallets using the hyperpaxd binary to store private keys and sign transactions over CLI. To view all keys use:$NAME with:
--help flag
Interact with a Network
You can use hyperpaxd to query information or submit transactions on the blockchain. Queries and transactions are requests that you send to an Paxeer Network node through the Tendermint RPC. :::tip 👉 To use the CLI, you will need to provide a Tendermint RPC address for the--node flag.
Look for a publicly available addresses for testnet and mainnet in the Networks page.
:::
Set Network Config
In the local setup the node is set totcp://localhost:26657. You can view your node configuration with:
Queries
You can query information on the blockchain usinghyperpaxd query (short hyperpaxd q). To view the account balances by its
address stored in the bank module, use:
Transactions
You can submit transactions to the network usinghyperpaxd tx. This creates, signs and broadcasts a tx in one command. To
send tokens from an account in the keyring to another address with the bank module, use: