Metatron Node Overview provides the instructions to launch and stake to a Metatron Node for the Pando Network.
In the Pando blockchain, Megatron Nodes propose and produce new blocks in the chain, while Metatron Nodes seal blocks and act as a check on malicious or otherwise non-functional Megatron Nodes. Metatron nodes play important roles to protect the security of the Pando blockchain as they form a second layer of defense against potential malicious attackers. Install and stake to your Metatron nodes to help secure the Pando blockchain!
This guide provides the instructions to launch and stake to a Metatron Node for the Pando Network.
The minimum token amount to stake is 10,000 PTX. The minimum hardware requirements are:
Hardware Requirement for Metatron Node
Staking through Web Wallet the “Pando Wallet” logo, unlock your Pando wallet using your typical access method.
Access the Pando Web Wallet from your desktop/laptop. Under the “Pando Wallet” logo, unlock your Pando wallet using your typical access method (keystore, seed phrase, private key, etc.).
Once your wallet is unlocked, click the “Stakes” tab of the menu and click “Deposit Stake”, then click "Metatron Node"
After clicking on Stake Deposit
In the Metatron Node Holder (Summary) field, enter the text string from your Metatron Cli Service. Enter the Amount of PTX you want to stake to this node and click “Deposit Stake". Note that you need to stake at least 10,000 PTX.
Metatron Stake Deposit
After reviewing your stake deposit info on the next screen, enter your wallet password, then click on "Deposit Stake". After the stake deposit transaction is confirmed, you can view your metatron deposit detail in dashbaord screen in "Stake" Tab.
To withdraw your staked tokens from the Metatron Node using either the Pando Web Wallet, click the "Stakes" tab, then the "Withdraw Stake" button.
On the next screen, select the "Metatron", need to click on "Continue" button. After clicking on continue this will ask to enter "Metatron Address" after entering this after clicking on "Withdraw Stake button"
After clicking on Withdraw Stake
After clicking on Metatron
Withdrawn stakes will be returned to your wallet address. In the "Stakes" section of your Pando wallet, you'll now see the stake's Withdrawn status has been changed to "Yes".
Install/Launch and Stake to the Metatron Node through command line
Following are the instructions to install a Metatron Node on a Linux server through the command line.
Please follow the instructions below to download the latest Linux binary and the necessary data. If you prefer to compile from the source code, please follow the steps here. If you are running the node on a Linux server, you'd need to run the node in a screen or tmux session, so that after you've logged off, the Pando node can continue to run.
sudo apt-get update && sudo apt-get install wget git curl net-tools build-essential make -y
sudo apt-get install build-essential
sudo apt-get install gcc
sudo apt-get install make
sudo apt-get install git
sudo apt-get install -y bzr
sudo apt-get install jq
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.4.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
echo 'export PANDO_HOME=/usr/local/go/src/github.com/pandotoken/pando' >> ~/.bashrc
echo 'export PANDO_HOME=/usr/local/go/src/github.com/pandotoken/pando' >> ~/.profile
source ~/.bashrc && source ~/.profile
Next, clone the release branch of the Pando Ledger repo https://github.com/Pandoproject/Blockchain-code.git into your $GOPATH with the following command. The path should look like this: $GOPATH/src/github.com/pandotoken/pando
$ git clone https://github.com/pandoprojects/pando-network-protocol.git
$ export GO111MODULE=on
$ export GO111MODULE=onde
$ cd $PANDO_HOME
$ make install
$ cd $PANDO_HOME
$ cp -r ./integration/pandonet ../pandonet
$ mkdir ~/.pandocli
$ cp -r ./integration/pandonet/pandocli/* ~/.pandocli/
$ chmod 700 ~/.pandocli/keys/encrypted
Now launch the Pando with the following commands.
$ pando start --config=../pandonet/node
NOTE: When the Pando node launches for the first time, you need to choose a password to encrypt the signing key of the metatron node. Please choose a secure password and keep it in a safe place. The next time when you restart the node, you will need the password to unlock it.
It might take some time for the node to sync up with the network (typically should be less than 10 minutes). To check if the node is already in-sync with the network, you can execute the following command in another console:
$ ./pandocli query status
The syncing field in the return indicates whether the node is still in the synchronization mode. If it is false, it means the node is already synced to the lastest block.
After the node is synced (i.e. syncing is false), we can proceed with staking to make it a full Metatron Node. First we'd need the "fingerprint" of this node. In another console, execute the following command
$ ./pandocli query metatron
The output should look something like this:
The summary part is the "fingerprint" we need for staking. Each metatron staking transaction requires at least 10,000 Pando tokens