Official consensus client of the Polygon blockchain.
https://polygon.technology/ โ// readme
heimdall-v2
Consensus client of the Polygon PoS chain, using forks of cometBFT and cosmos-sdk.
Pre-requisites
Make sure you have go1.26+ already installed.
Build
$ make build
This will produce the binary heimdalld in the build directory.
Initialize heimdall
$ heimdalld init <MONIKER_NAME> --chain-id=<NETWORK_NAME>
You can skip --chain-id flag if you want to run this locally (it will default to heimdall-local).
Otherwise, use heimdallv2-80002 for amoy, or heimdallv2-137 for mainnet.
<MONIKER_NAME> is the name of your node, which can be any string you like.
This command will generate some folders and files in the heimdall home directory (default /var/lib/heimdall).
Run heimdall
$ heimdalld start
How to use the keyring
Instructions on how to import your validator private key into the keyring and use it to sign transactions.
Get your base64 encoded private key from:
/var/lib/heimdall/config/priv_validator_key.json
Convert the base64 encoded key to the hex encoded key:
`echo โ<PRIVATE_KEY_BASE64_ENCODED>โ |โฆ