Pocket-Network-testing

Setup Pocket Core

Pocket Core offers a Command Line Interface(CLI) that you will need to get started managing your application wallet, staking tokens, creating an authentication authorization token, and other services to help maintain your application. You can begin using the Pocket Core CLI after you have downloaded and configured it on your computer by downloading the Binary or Docker file to configure your environment.

Prerequisites:

  • Homebrew(Mac or Linux)
  • GO (binary installation )

Installation:

Installing using brew:

On a Mac or Linux, to install Pocket-Core using brew just run the following commands in your terminal:

$   brew tap pokt-network/pocket-core
$   brew install --HEAD pokt-network/pocket-core/pocketcore

Setup Pocket Core:

Build from Source

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

In your saved location, go into /your/saved/location/pocket-core/app/cmd/pocket_core and enter:

$  go build ./main.go 

Once you build the project, you will see it has created an executable titled main.

[show image]

Viewing the CLI

To view the CLI, all we need to do is initiate pocket core is by entering pocket -h:

# In terminal enter:
$ pocket -h

# It will return:
Pocket is a distributed network that relays data requests and responses to and from any blockchain system.
Pocket verifies all relayed data and proportionally rewards the participating nodes with native cryptographic tokens.

Usage:
  pocket [command]

Available Commands:
  accounts    account management
  apps        application management
  help        Help about any command
  nodes       node management
  query       query the blockchain
  start       starts pocket-core daemon
  util        utilities

Flags:
      --datadir string            data directory (default is $HOME/.pocket/
  -h, --help                      help for pocket
      --node string               takes a remote endpoint in the form <protocol>://<host>:<port>
      --persistent_peers string   a comma separated list of PeerURLs: <ID>@<IP>:<PORT>
      --pocketRPCPort string      the port for pocket rpc (default "8081")
      --seeds string              a comma separated list of PeerURLs: <ID>@<IP>:<PORT>
      --tmPeersPort string        the port for tendermint p2p (default "46656")
      --tmRPCPort string          the port for tendermint rpc (default "26657")
  -t, --toggle                    help message for toggle

Use "pocket [command] --help" for more information about a command.

Your CLI is now built and ready to go, but before you can start connecting your client to one of our supported networks, you will first register your application on the Pocket Network.

Updated 10 days ago


Setup Pocket Core


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.