Testnet

Chain ID: artela_11822-1 | Node Version: v0.4.7-rc6

Node Installation Guide

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

rm -rf artela

git clone https://github.com/artela-network/artela

cd artela

git checkout v0.4.7-rc4

make install

artelad version

Initialize Node

Replace NodeName with your own moniker.

artelad init NodeName --chain-id=artela_11822-1

Download Genesis

curl -Ls https://ss-t.artela.nodestake.org/genesis.json > $HOME/.artelad/config/genesis.json 

Download addrbook

curl -Ls https://ss-t.artela.nodestake.org/addrbook.json > $HOME/.artelad/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/artelad.service > /dev/null <<EOF
[Unit]
Description=artelad Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which artelad) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable artelad

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss-t.artela.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.artela.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.artelad

Launch Node

sudo systemctl restart artelad
journalctl -u artelad -f

If you have any questions, please reach out to our Discord

 

https://rpc-t.artela.nodestake.org

 

https://api-t.artela.nodestake.org

 

https://grpc-t.artela.nodestake.org:443

Chain Name: Artela Testnet
RPC: https://jsonrpc-t.artela.nodestake.org/
Chain ID: 11822
Symbol: ART
Explorer: 

https://ss-t.artela.nodestake.org/genesis.json

Download Genesis File

curl -Ls https://ss-t.artela.nodestake.org/genesis.json > $HOME/.artelad/config/genesis.json 

43b0a791ba5a2cd500c615ccc88304f3f4ab2501@rpc-t.artela.nodestake.org:666

Set Seed Node

seed="43b0a791ba5a2cd500c615ccc88304f3f4ab2501@rpc-t.artela.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.artelad/config/config.toml

Restart Node

sudo systemctl restart artelad
journalctl -u artelad -f

https://ss-t.artela.nodestake.org/addrbook.json

Download Addrbook

curl -Ls https://ss-t.artela.nodestake.org/addrbook.json > $HOME/.artelad/config/addrbook.json 

Restart Node

sudo systemctl restart artelad
journalctl -u artelad -f

Set Peers

peers=$(curl -s https://ss-t.artela.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.artelad/config/config.toml

Restart Node

sudo systemctl restart artelad
journalctl -u artelad -f

Stop Node And Reset

sudo systemctl stop artelad

artelad tendermint unsafe-reset-all --home ~/.artelad/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc-t.artela.nodestake.org:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

 

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \

s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \

s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \

s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.artelad/config/config.toml

more ~/.artelad/config/config.toml | grep 'rpc_servers'

more ~/.artelad/config/config.toml | grep 'trust_height'

more ~/.artelad/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart artelad
journalctl -u artelad -f

Get old Snapshots

We make the node snapshot every 12h

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Stop Node and Reset Date

sudo systemctl stop artelad

cp $HOME/.artelad/data/priv_validator_state.json $HOME/.artelad/priv_validator_state.json.backup

rm -rf $HOME/.artelad/data

artelad tendermint unsafe-reset-all --home ~/.artelad/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss-t.artela.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.artela.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.artelad

mv $HOME/.artelad/priv_validator_state.json.backup $HOME/.artelad/data/priv_validator_state.json

Restart Node

sudo systemctl restart artelad
journalctl -u artelad -f

Get old Snapshots

If you have any questions, please reach out to our Discord