Set up your Polygon Mainnet or Testnet (Mumbai) node.
- Setup your Axelar validator
- Minimum hardware requirements: 4-8+ core CPU , 16-32GB RAM, 2TB+ SSD free storage space.
- MacOS or Ubuntu 18.04+
- Build-essential packages
- Golang 1.17+
- Official Documentation (opens in a new tab)
Install required dependencies
In order to build the
polygon node, you first need to install all of the required dependencies.
1. Update and install
sudo apt-get update sudo apt-get -y upgrade sudo apt-get install -y build-essential
Install the latest version of golang (opens in a new tab).
Install the Polygon node
Polygon node consists of 2 layers, Heimdall and Bor. Heimdall is a fork of tendermint and runs in parallel to the Ethereum network, monitoring contracts, and Bor is a fork of go-Ethereum and producing blocks shuffled by Heimdall nodes. You need to install and run both binaries in the correct order, as explained in the following steps.
1. Install Heimdall
Please make sure you checkout the latest release tag (opens in a new tab), depending on the network (Mainnet/Testnet). In this tutorial, we are using
cd ~/ git clone https://github.com/maticnetwork/heimdall cd heimdall git checkout v0.2.9 make install # Verify the correct version heimdalld version --long
2. Install Bor
Please make sure you checkout the latest release tag (opens in a new tab). In this tutorial we are using
cd ~/ git clone https://github.com/maticnetwork/bor cd bor git checkout v0.2.16 make bor-all sudo ln -nfs ~/bor/build/bin/bor /usr/bin/bor sudo ln -nfs ~/bor/build/bin/bootnode /usr/bin/bootnode # Verify the correct version bor version
Setup and configure node
1. Setup launch directory
<network-name> below with the network you are joining.
cd ~/ git clone https://github.com/maticnetwork/launch