Blockchain Integration
Please follow the below step.
What's Inside
Setup Go environment
Step 1: Install Go and set environment variables GOPATH , GOBIN, and PATH. The current code base should compile with Go 1.17.4 on a Linux like system (i.e. Ubuntu, Mac OS X). Below are the steps to install Go 1.17.4 and setup the environments on Ubuntu.
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
wget https://go.dev/dl/go1.17.4.linux-amd64.tar.gz
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/pandoprojects/pando' >> ~/.bashrc
echo 'export PANDO_HOME=/usr/local/go/src/github.com/pandoprojects/pando' >> ~/.profile
source ~/.bashrc && source ~/.profile
Setup directory & Cloning
Step 2: Next, Setup Metatron, local working directory & clone the release branch of the Pando Ledger repo
mkdir -p /usr/local/go/src/github.com/pandoprojects/ && cd /usr/local/go/src/github.com/pandoprojects/
git clone https://github.com/pandoprojects/pando-network-protocol.git pando
cd $PANDO_HOME
Build and Install
(A) This should build the binaries and copy them into your $GOPATH/bin. Two binaries pando and pandocli are generated. pando can be regarded as the launcher of the Pando Ledger node, and pandocli is a wallet with command line tools to interact with the ledger.
export GO111MODULE=on
make install
Run Unit Test
Run unit tests with the command below
make test_unit
Launch a Local Private Net
Please click on below link and refer our documentation for the same.
Stake and make Metatron Active
Copy summary from here and go to web wallet
Choose staking option and select metatron
Add copied node summary and stake value more than 10000 PTX to make metatron active
Once done switch back to cli on node now you can see node is active and working on finalizing and verifying the blockchain
Use ./pandocli query status to check syncing status and staking and balance
Same can be verify on explorer just copy address key and paste on explorer and now you can see staking value and in node tab also can see metatron listed there
Connect to Testnet
Pando Lab maintains a testnet environment that resembles the mainnet to facilitate partner development and testing. Please click on below link and refer our documentation for the same.
Connect to Mainnet
Pando Lab maintains a mainnet environment for production release products on pando network. Pando network uses chain id as pandonet for mainnet. Please click on below link and refer our documentation for the same.
Contact us if facing any issue:
Email id- mailto:[email protected]
Last updated