Pocket offers developers a simple CLI to help get you started in getting setup with creating a wallet as well as obtaining network resources for your DApp by staking Pocket tokens.
Before you get started, you must first download and build:
- Pocket Core
To view the CLI all we need to do is type in pocket along with the helper flag:
$ pocket -h
You will see all of the global flags and their descriptions.
In order to set up a node on the Pocket Network and service relay requests, you will first need to create an account. After you have built Pocket Core on your machine, are going to initiate the CLI and create an application account by entering in:
$ pocket accounts create
Note: After you hit enter, it will prompt you to enter a passphrase. The passphrase can be whatever you like and the passphrase will be used to encrypt your generated key pair.
Once your account has been created, you can view it, along with other pre-generated accounts by entering:
# executable is located in /your/saved/location/pocket-core/app/cmd/pocket_core $ ./main accounts list
#example output# (0) 1B9FF29...B2E (1) 3023332...281 (2) 41750FF...662
To fund the wallet, go to the Pocket Faucet(link) and copy your application address into the address field and click Get Testnet POKT:
Updated 9 days ago