Pocket Core offers a Command Line Interface (CLI) that you will need to manage your node's wallet, stake tokens, start your Pocket Node, and other services to help maintain your Node. You can begin using the Pocket Core CLI after you have downloaded and configured it on your computer (or server) by either downloading the Binary or Docker file to configure your environment.
The following sections and steps are being shown to act as a reference of how your node should be configured and you should use your own tools, and knowledge to properly configure your node's environment. We are not liable for any slashing or jailing that may occur due to a misconfiguration
On a Mac or Linux, to install Pocket-Core using Homebrew just run the following commands in your terminal:
brew tap pokt-network/pocket-core brew install pokt-network/pocket-core/pocket # (Optional) # Once installed, refresh your terminal screen to incorporate the installation
And that's it!
Before we download the binary, you'll need to install the cleveldb dependency:
# For linux: apt-get update && apt-get install -y libleveldb-dev build-essential # For mac OSX brew install leveldb
Open up your shell(or terminal) and download the Pocket Core repo from GitHub in the destination directory of your choosing.
# using git clone: git clone https://github.com/pokt-network/pocket-core.git # using curl: curl -LJO https://github.com/pokt-network/pocket-core.git # using wget: wget --no-check-certificate --content-disposition https://github.com/pokt-network/pocket-core
After the repo has been downloaded, go into the pocket-core folder and swap the latest release candidate: 0.5.0:
git checkout tags/RC-0.5.0
After you have swapped to the latest release candidate, build your binary and add it to your PATH down below.
# First make sure you have $GOPATH setup echo $GOPATH # Example output on MacOS /Users/<your username>/go # Inside the pocket-core folder, build your pocket binary and put it in the $GOPATH/bin directory go build -tags cleveldb -o $GOPATH/bin/pocket ./app/cmd/pocket_core/main.go
Last, we're going to navigate to our
$HOME directory and run:
mkdir -p .pocket/config && cd .pocket/config; curl -O https://raw.githubusercontent.com/pokt-network/pocket-network-genesis/master/testnet/genesis.json
Your CLI is now built and ready to go!
To test your installation, we are going to check our CLI version. In the terminal, enter:
pocket version # returns RC-0.5.0
Updated 5 days ago