Download latest release
Latest chain release binaries can be found here. If you would like to run the node with EVM, find the latest v5 RC release (e.g. Mantrachain v5.0.0-rc3) You can download themantrachaind executable and place it in a standard binary folder, such as /usr/local/bin/ or similar. Remember to make it executable by completing sudo chmod +x.
Binary Check
Eachmantrachaind binary is deployed with a corresponding .sha256 file that you can download, to verify the integrity of the build. Download the sha256sum.txt and verify the hash.
Build From Source
If you would like to build from source instead of using the release binary, you can compile and install the binary.
go will be needed for this install
Initialize the Chain
Before actually running the node, we need to initialize the chain, and most importantly its genesis file. This is done with theinit subcommand:
moniker: the custom username of your node, it should be human-readable.chain-id: The id of an existing chain that you want to join. Examples:- Testnet:
mantra-dukong-1 - Mainnet:
mantra-1
- Testnet:
The command above creates all the configuration files needed for your node to run, as well as a default genesis file, which defines the initial state of the network. Reminder to overwrite the default genesis if youโre planning to exist to an existing chain!! The
~/.mantrachain folder has the following structure:
config.toml: used to configure the CometBFT, learn more on CometBFTโs documentation,app.toml: generated by the Cosmos SDK, and used to configure your app, such as state pruning strategies, telemetry, gRPC and REST servers configuration, state syncโฆ
Connect to existing chains
I) Download the genesis.json
In order to connect to an existing public chain, we need to reuse an existing genesis.json
- Go to MANTRA-Chain/net repository
- Download the
genesis.jsonof the chain you want to connect to, and put it into~/.mantrachain/config
II) Update configuration file
- Install prerequisites tools before proceeding, ensure that
wgetis installed on your system, as it is required for running a Node. Havingwgetinstalled ensures seamless execution of the below script, allowing it to fetch necessary external resources without interruption. - Create a bash script with the following content:
- Update the
SEEDSenvironment variable
SEEDS="7e061edecef73a700b699c785f61a44ca981ff7f@34.150.103.79:26656"
SEEDS="32276da966637722914411e16ca91bd37dcd1c28@35.220.157.87:26656,9f5235b418c87af4302619705d0bf4748249ca6b@34.18.33.96:26656"- Note: more seeds can be found at (Github)[https://github.com/cosmos/chain-registry/blob/master/mantrachain/chain.json]
- Run the script:
bash <script-name>.sh
Optional: start from an existing snapshot
- Download the snapshot from:
here - Install lz4
- Macos (homebrew) :
brew install lz4 - Linux: more info here
- Macos (homebrew) :
- Decompress the snapshot
- Update the file
~/.mantrachain/config/config.toml- Replace the value of
db_backendbypebbledb, so it will looks likedb_backend = "pebbledb"
- Replace the value of