Going live
Final steps for going live with your node. Part 5 of 5 in the Zero to Node tutorial.
This section will details the final steps in going live with your node.
Test everything
At this point your Pocket node should be up and running!
But you'll want to test it to confirm. The following are some of the things you can do to test your Pocket Node.
Make sure the Pocket process is running
The first thing to check is that the pocket service is running. You can do that 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 something like the following.
Network status
Another way to see if your node is fully synced is to check the status with the following command:
The result should look something like 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.
Make sure your node is visible to other nodes
You'll also want to make sure your node is accessible to other nodes.
To test and confirm your node is visible to other nodes on the public network, you'll make an HTTP request using the public DNS name for the node. You can use the following command to make that request:
As always, don't forget to change pokt001.pokt.run
to the DNS name for your node.
This should return something like the following. This is the version of pocket-core that is running.
Staking your node
To earn POKT rewards, you'll need to stake at least 15,000 POKT. That said, you should stake at least 15,100 POKT or more to be safe. This provides a little extra room in case your node gets slashed (penalized) for some reason.
Please make sure that you understand the risks associated with staking POKT and running a Pocket node.
If you're using the Pocket CLI to fund an account, keep in mind that the CLI uses uPOKT (the smallest unit of POKT) for its calculations. The formula for converting POKT to uPOKT is: uPOKT = POKT * 10^6
. So, multiplying 15050 POKT by 10^6 (one million) will result in 15050000000 uPOKT.
Also keep in mind that there is a cost for every transaction you send. At the moment, that cost is a flat fee of 0.01 POKT, or 10000 uPOKT, but this may be subject to change.
List your accounts:
Confirm the validator account is set:
Confirm the validator account has enough POKT. This should be at least 15,101 POKT. You'll want 15,100 to stake and a bit more for network fees:
Stake your node, making sure to enter the correct details for your setup:
The {ChainIDs}
placeholder should be a list of relay chain IDs that are defined in your ~/.pocket/config/chains.json
file. In this guide we only set up 0001
, but if you were relaying to multiple chains, each id would be separated by a comma. For example, 0001,0022,0040
.
As of RC-0.8.2
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
, then you should see something like this:
The actual time it takes to stake will vary depending on when the last block was processed, but generally, it should take less than 15 minutes.
Confirm your node is live
After you've staked your node, you can confirm it's live by running the following command:
If you see something like the following, it just means your node is not live yet:
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 hopefully this has gotten you started and on the right path. Thank you for doing your part to help decentralize Web3!
Last updated
Was this helpful?