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.

1
sudo apt-get update && sudo apt-get install wget git curl net-tools build-essential make -y
2
sudo apt-get install build-essential
3
sudo apt-get install gcc
4
sudo apt-get install make
5
sudo apt-get install git
6
sudo apt-get install -y bzr
7
sudo apt-get install jq
8
wget https://go.dev/dl/go1.17.4.linux-amd64.tar.gz
9
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.4.linux-amd64.tar.gz
10
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
11
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
12
echo 'export PANDO_HOME=/usr/local/go/src/github.com/pandoprojects/pando' >> ~/.bashrc
13
echo 'export PANDO_HOME=/usr/local/go/src/github.com/pandoprojects/pando' >> ~/.profile
14
source ~/.bashrc && source ~/.profile

Setup directory & Cloning

Step 2: Next, Setup Metatron, local working directory & clone the release branch of the Pando Ledger repo

Make directory
mkdir -p /usr/local/go/src/github.com/pandoprojects/ && cd /usr/local/go/src/github.com/pandoprojects/
Cloning
git clone https://github.com/pandoprojects/pando-network-protocol.git pando 

Note: Code is there on main branch so it can be clone directly without switching any branch using github

Change working directory
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 sure you are in pando home directory- cd $PANDO_HOME

make install

Notes for Linux binary compilation

The build and install process on Linux is similar, but note that Ubuntu 18.04.4 LTS / Centos 8 or higher version is required for the compilation.

Notes for Windows binary compilation

The Windows binary can be cross-compiled from macOS. To cross-compile a Windows binary, first make sure mingw64 is installed (brew install mingw-w64) on your macOS. Then you can cross-compile the Windows binary with the following command:

● make exe

You'll also need to place three .dll files libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll under the same folder as pando.exe and pandocli.exe.

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:support@pandolab.io

Last updated

Contact Us:

On Discord

© Copyright 2022 Pandolab Pte Ltd. All rights reserved.