Setting up Cosmovisor
For mainnet, it's recommended to use Cosmovisor to run your node. If you've not used it before, then run it during a testnet to check you can get it set up correctly.
Install
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
To install a previous version, you can specify the version after the @ sign. Note that versions older than 1.4.0 can also target a specific version, at a slightly different location:
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.0.0which cosmovisor/home/<your-user>/go/bin/cosmovisorgit clone https://github.com/cosmos/cosmos-sdk
cd cosmos-sdk
git checkout v0.42.7
make cosmovisor
cp cosmovisor/cosmovisor $GOPATH/bin/cosmovisor
cd $HOMEAdd environment variables to your shell
Set up folder structure
Set up genesis binary
Cosmovisor init
Set up service
Start Cosmovisor
Last updated
Was this helpful?
