Standalone Node Build

Initialize and start the Node

This section explains how to initialize and start a standalone full node for testing purposes. Note that running just a full node is enough to be able to send transactions, deploy and interact with smart contracts, mint NFTs, etc.

Please ensure you have completed everything in Node Environment Preparation and the Binary Builderbefore you continue to create your node.

1. As root, navigate to the directory /var/lib/cudos/CudosBuilders/docker/full-node

sudo -i
cd /var/lib/cudos/CudosBuilders/docker/full-node

2. Create a copy of full-node.env.example, naming the copy full-node.client.testnet.public01.env

cp full-node.env.example full-node.client.testnet.public01.env

3. Open the file full-node.client.testnet.public01.env.

  • Set the "MONIKER" (your node’s name on the blockchain) attribute to your desired name:
MONIKER=<your-node-moniker>
  • Set the flag "SHOULD_USE_GLOBAL_PEERS" to true :
SHOULD_USE_GLOBAL_PEERS=true

Exit and Save the file

4. Make sure that you are still in the correct directory /var/lib/cudos/CudosBuilders/docker/full-node, and Initialize the node by running this command:

docker-compose --env-file full-node.client.testnet.public01.arg -f init-full-node.yml -p cudos-init-full-node-client-testnet-public-01 up --build

5. Start your node

docker-compose --env-file full-node.client.testnet.public01.arg -f start-full-node.yml -p cudos-start-full-node-client-testnet-public-01 up --build --detach

If all steps are completed successfully, you should see a newly generated file: /var/lib/cudos/CudosData/cudos-data-full-node-client-testnet-public-01/tendermint.nodeid that contains your node ID, consisting of a long string of random characters.

TIP

Syncing may take several hours. Refer to Checking sync status to verify your node is syncing.

Once your node is synced, you will be able to either:

  • Use it as a Full Node. If you wish to send transactions from your node, you will need to create a wallet, fund it, and stash it in your node. Refer to Setting up your nodes wallet for instructions.
  • Configure it as a Standalone Validator Node:

Standalone Validator Node

Staking

The standalone Validator node consists of a single full node running as a validator.

A full node becomes a validator when it has successfully staked CUDOS.

Before staking, you must create and fund your wallet, and stash it on your node by following the process described in Setting up your nodes wallet, making sure to use the Testnet cudos-testnet-public-3 instead of mainnet.

Once this is completed, you can go ahead and stake CUDOS, which will make your node a validator, as described in Staking your Validator, making sure to use the Testnet cudos-testnet-public-3 instead of mainnet.