Polygon
Set up your Polygon Mainnet or Testnet (Mumbai) node.
Prerequisites
- 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
Install required dependencies
In order to build the polygon
node, you first need to install all of the required dependencies.
1. Update and install build-essential
2. Install golang
Install the latest version of golang.
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.
Install the latest versions for the network accordingly heimdall latest release tag and bor latest release tag
1. Install Heimdall
2. Install Bor
Check Versions
Setup and configure node
1. Configure Bor seeds
2. Update service config user permission
3. Open port to public
Open the /var/lib/bor/config.toml
and edit host address under jsonrpc.http
Sync from snapshot
Bor
Heimdall
Start the services
Check logs
Verify RPC
Once your Bor
node is fully synced, you can run a cURL request to see the status of your node:
If the node is successfully synced, the output from above will print {"jsonrpc":"2.0","id":1,"result":false}
Configure vald
In order for vald
to connect to your node, your rpc_addr
should be exposed in
vald’s config.toml