Part 5 - Going Live
Test everything
At this point your Pocket node should be up and running!
But you’ll want to confirm this. The following are some of the queries you can perform to test your Pocket node.
Pocket process
The first thing to check is that the Pocket process in its service is running by running the following command:
You should see output similar to the following:
Block height
You’ll want to check that the node is fully synced with the Pocket blockchain. The easiest way is to run the following command:
The result should look similar to the following:
Network status
Another way to see if your node is fully synced is to check its status with the following command:
The result should look similar to the following. Note the highlighted property catching_up
which indicates if the node is catching up with the blockchain or fully synced. In the example below, the node is fully synced.
Node peer-to-peer visibility
You’ll also want to make sure your node is accessible to other Pocket nodes.
To test this, you’ll make an HTTP request using the public DNS name of the node, as shown below:
As always, don’t forget to change pokt001.pokt.run
to the DNS name of your node.
This should return the version of Pocket Core that you're running:
Staking your node
To earn POKT rewards, you’ll need to stake at least 15,000 POKT.
NOTE: Under the current Morse protocol, the risk of stake slashing for service nodes is exceedingly remote.
If you’re using the Pocket CLI to fund an account, keep in mind that the CLI uses µPOKT (the smallest unit of POKT) for its calculations. The formula for converting POKT to µPOKT is: µPOKT = POKT * 10^6
. So, multiplying 15000 POKT by 10^6 (one million) will result in 15000000000 µPOKT.
Also keep in mind that there is a cost for every transaction you execute. At the moment, that cost is a flat fee of 0.01 POKT, or 10000 µPOKT (one POKT covers 100 transactions).
List your accounts:
Confirm the validator account is set:
Confirm the node account has enough POKT. This should be at least 15,001 POKT. You’ll want 15,000 to stake and one POKT to cover the staking transaction fee :
Stake your node, making sure to enter the correct details for your setup:
The [CHAIN_IDS]
placeholder should be a list of relay chain IDs that are defined in your ~/.pocket/config/chains.json
file. In this guide we set up only0001
, but if you were relaying to multiple chains, each id would be separated by a comma. For example, 0001,0022,0040
.
As of Pocket Core versionRC-0.9.1.3
there are two staking methods: custodial
and non-custodial
. The custodial method is used in the example above.
After you send the stake command, you’ll be prompted for your passphrase, after which you should see something similar to this:
The time it takes to stake will vary depending on when the last block was created, but generally, it takes less than 15 minutes.
Confirm your node is staked
After you’ve staked your node, you can confirm it’s staked by running the following command:
If you see something like the following, it means your node is not yet staked:
If this happens, please wait a few minutes and try again.
Tutorial complete
Congratulations! You’ve successfully set up a Pocket node.
There’s more to running a Pocket node than this, such as maintenance, upgrades, and other administrative tasks, but now you're on the right path. Thank you for doing your part to help decentralize Web3!
Last updated