Skip to content

Artela

Introduction

Artela is a new Layer1 that unlocks blockchains to be improved by anyone. Add new and unique features to existing blockchain protocols.

Recommended Hardware

8 Cores, 16GB RAM, 1TB of storage (NVME)

Services & Sync

html
https://artela-testnet-rpc.eigennode.de
html
https://artela-testnet-api.eigennode.de
html
https://artela-testnet-grpc.eigennode.de

Snapshot

Update every 4 á 5 hours

shell
sudo systemctl stop artelad

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

rm -rf $HOME/.artelad/data $HOME/.artelad/wasmPath
curl https://files.eigennode.de/artela/snap_artela.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.artelad

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

sudo systemctl restart artelad && sudo journalctl -u artelad -f

State Sync

shell
sudo systemctl stop artelad

cp $HOME/.artelad/data/priv_validator_state.json $HOME/.artelad/priv_validator_state.json.backup
artelad tendermint unsafe-reset-all --home $HOME/.artelad

peers=""  
SNAP_RPC="artela-testnet-rpc.eigennode.de"

sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.artelad/config/config.toml 

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 && sleep 2

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\"| ;
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.artelad/config/config.toml

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

sudo systemctl restart artelad && sudo journalctl -u artelad -f

Installation

Environment variables & dependencies

shell
# set environment variables
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="moniker"" >> $HOME/.bash_profile
echo "export CHAIN_ID="artela_11822-1"" >> $HOME/.bash_profile
echo "export PROJECT="artela"" >> $HOME/.bash_profile
echo "export NETWORK="testnet"" >> $HOME/.bash_profile
echo "export DIRECTORY="$HOME/.artelad"" >> $HOME/.bash_profile
source $HOME/.bash_profile

# install dependencies
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential fail2ban ufw
sudo apt -qy upgrade

# install go
cd $HOME
bash <(curl -s "https://raw.githubusercontent.com/EigenNode/utils/main/go_installer.sh") -v 1.21.3
source ~/.bash_profile

Install node

shell
# download binary
cd $HOME
rm -rf artela
git clone https://github.com/artela-network/artela
cd artela
git checkout v0.4.7-rc6
make install

# config and init app
artelad config keyring-backend os
artelad config chain-id artela_11822-1
artelad init "test" --chain-id artela_11822-1

# download genesis and addrbook
wget -O $HOME/.artelad/config/genesis.json https://files.eigennode.de/artela/genesis.json
wget -O $HOME/.artelad/config/addrbook.json https://files.eigennode.de/artela/addrbook.json

# set seeds and peers
SEEDS=""
PEERS=""
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.artelad/config/config.toml

# config pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.artelad/config/app.toml

# set minimum gas price, enable prometheus and disable indexing
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025art"|g' $HOME/.artelad/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.artelad/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.artelad/config/config.toml

# create and enable service file
sudo tee /etc/systemd/system/artelad.service > /dev/null <<EOF
[Unit]
Description=artela node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.artelad
ExecStart=$(which artelad) start --home $HOME/.artelad
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable artelad

# download latest chain data snapshot
if curl -s --head https://files.eigennode.de/artela/snap_artela.tar.lz4 | head -n 1 | grep "200" > /dev/null; then
    curl https://files.eigennode.de/artela/snap_artela.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.artelad
else
    bash <(curl -s https://raw.githubusercontent.com/EigenNode/utils/main/find_snap.sh)
fi

# start service
sudo systemctl restart artelad && sudo journalctl -u artelad -f --no-hostname -o cat

Create wallet

Check Sync status, once your node is fully synced, the output will say False

shell
artelad status 2>&1 | jq .SyncInfo

Create wallet

shell
artelad keys add $WALLET

Restore existing wallet

shell
artelad keys add $WALLET --recover

Check balance

shell
artelad q bank balances $(artelad keys show $WALLET -a)

Create validator

shell
artelad tx staking create-validator \
--amount 1000000art \
--pubkey $(artelad tendermint show-validator) \
--chain-id artela_11822-1 \
--moniker "$MONIKER" \
--identity "" \
--details "❤️ Thank you, EigenNode" \
--website "https://eigennode.de/" \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--gas auto --fees 0.025art \
-y

Security

Firewall security Set the default to allow outgoing connections, deny all incoming, allow ssh and node p2p port

shell
sudo apt install -y ufw
sudo ufw default allow outgoing 
sudo ufw default deny incoming 
sudo ufw allow ssh/tcp 
sudo ufw allow 26656/tcp
sudo ufw enable

Delete node

DANGER

Please, note before proceeding with the next step! All data will be lost! Make sure you have backed up your keys!

shell
cd $HOME
sudo systemctl stop artelad 
sudo systemctl disable artelad 
sudo rm /etc/systemd/system/artelad.service 
sudo systemctl daemon-reload 
sudo rm -rf $HOME/.artelad
sudo rm -rf $(which artelad)

Cheat Sheet

Service operations

Check logs

shell
sudo journalctl -u artelad -f

Start service

shell
sudo systemctl start artelad

Stop service

shell
sudo systemctl stop artelad

Restart service

shell
sudo systemctl restart artelad

Sync info

shell
artelad status 2>&1 | jq .SyncInfo

Check service status

shell
sudo systemctl status artelad

Reload services

shell
sudo systemctl daemon-reload

Enable Service

shell
sudo systemctl enable artelad

Disable Service

shell
sudo systemctl disable artelad

Node info

shell
artelad status 2>&1 | jq .NodeInfo

Your node peer

shell
echo $(artelad tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.artelad/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Key management

Add New Wallet

shell
artelad keys add $WALLET

Restore executing wallet

shell
artelad keys add $WALLET --recover

List All Wallets

shell
artelad keys list

Delete wallet

shell
artelad keys delete $WALLET

Check Balance

shell
artelad q bank balances $(artelad keys show $WALLET -a)

Export Key (save to wallet.backup)

shell
artelad keys export $WALLET

View EVM Prived Key

shell
artelad keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

shell
artelad keys import $WALLET wallet.backup

Edit existing validator

shell
artelad tx staking edit-validator \
--chain-id artela_11822-1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "❤️ Thank you, EigenNode" \
--website "https://www.eigennode.de/" \
--from $WALLET \
--commission-rate 0.1 \
--gas auto --fees 0.025art \
-y

EigenNode