<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6f767d5e-c4ca-4e4e-a39d-7baa69ca6f6c/84da0319-4905-4d49-a6fa-442f5cec6776/artela1689242598369.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/6f767d5e-c4ca-4e4e-a39d-7baa69ca6f6c/84da0319-4905-4d49-a6fa-442f5cec6776/artela1689242598369.png" width="40px" /> Artela

https://testnet.itrocket.net/artela/staking/artvaloper1cy9gujr2c8lyjhtdf6uqrlsm0al0mx5ut0yk4e

</aside>

Prerequisites

Ensure you have a Go development environment set up. If not, you can install it using the following commands:

sudo apt-get update
sudo apt-get install -y make gcc
wget <https://go.dev/dl/go1.20.3.linux-amd64.tar.gz>
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

Create a directory for your source files:

mkdir -p /home/user1/go/src
export GOPATH=/home/user1/go

Clone and Build Artela

Clone the Artela repository and build the project:

cd $GOPATH/src
git clone <https://github.com/artela-network/artela>
cd artela
git checkout main
make clean && make
cp ./build/artelad $HOME/go/bin/.
export PATH=$PATH:$HOME/go/bin

Alternatively, you can download the artelad binary from the Artela releases page and copy it to /usr/local/bin.

Initialize Node

Initialize your node with a custom moniker:

artelad init <custom_moniker> # e.g., artelad init test111

Copy the genesis.json file to the appropriate directory:

mv genesis.json $HOME/.artelad/config/genesis.json

Configure Node

Update config.toml with persistent seeds:

cd $HOME/.artelad/config
sed -i 's/seeds = ""/seeds = "<node-id-1@node-1-ip:port>,<node-id-2@node-2-ip:port>"/' config.toml

Enable state sync:

cd $HOME/.artelad/config
sed -i 's/enable = false/enable = true/' config.toml
sed -i 's/trust_height = 0/trust_height = <BLOCK_HEIGHT>/' config.toml
sed -i 's/trust_hash = ""/trust_hash = "<BLOCK_HASH>"/' config.toml
sed -i 's/rpc_servers = ""/rpc_servers = "node-1-ip:port,node-2-ip:port"/' config.toml