Run a Full Node
Run a Full Node
How to run a full node of Side Chain.
Setting up the keyring (Optional)
The keyring holds the private/public keypairs used to interact with a node. For instance, a validator key needs to be set up before running the blockchain node, so that blocks can be correctly signed. The private key can be stored in different locations, called "backends", such as a file or the operating system's own key storage.
export SIDED_KEYRING_BACKEND=os
Adding keys to the keyring
This command generates a new 24-word mnemonic phrase, persists it to the relevant backend, and outputs information about the keypair. If this keypair will be used to hold value-bearing tokens, be sure to write down the mnemonic phrase somewhere safe!
By default, the keyring generates a secp256k1 keypair. The keyring also supports Native Segwit and Taproot keys, which may be created by passing the --key-type=segwit
or --key-type=taproot
flag . A keyring can of course hold three types of keys simultaneously, and the Cosmos SDK's x/auth module supports natively these three public key algorithms.
Note: Avoid using the Taproot address for running the validator node. If you opt for a Segwit address, you can utilize Bitcoin wallets such as OKX Wallet and Unisat. However, if you choose a secp256k1 address, you must use Cosmos wallets such as Keplr and Leap.
Query your local keys:
sided keys list
Initialize the SIDE Node
Before actually running the node, we need to initialize the blockchain, and most importantly its genesis file. This is done with the init subcommand: Use sided
to initialize your node:
sided init <MY_SIDE_VALIDATOR> --chain-id=sidechain-1
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. All these configuration files are in ~/.side by default, but you can overwrite the location of this folder by passing the --home flag.
The ~/.side folder has the following structure:
Configuring the Node Using app.toml and config.toml
The Cosmos SDK automatically generates two configuration files inside ~/.side/config
:
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...
Both files are heavily commented, please refer to them directly to tweak your node.
Downloading the genesis file
Download the genesis file and replace your local one.
Adding seeds and persistent peers
Open the config.toml to edit the seeds and persistent peers:
Modify the seed node or persistence node configuration by referring to the seeds and persistence details provided in the file
or
Setting up minimum gas prices
Open app.toml, find minimum-gas-prices, which defines the minimum gas prices the validator node is willing to accept for processing a transaction. Make sure to edit the field with some value, for example 0.0006uside,
Start Node and Sync
Last updated