Skip to main content

Artela

Run the node using SystemD

Hardware requirements

SPECRecommend
CPU8 Cores
RAM16 GB
SSD400 GB (VNBnode's experience)
SSD1 TB (Project's recommend)
NETWORK200 Mbps

Auto Installation

curl -o auto-run.sh https://raw.githubusercontent.com/vnbnode/binaries/main/Projects/Artela/auto-run.sh && bash auto-run.sh

Manual Installation

Server Preparation

apt update && apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y

Install GO

ver="1.20.3"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Node Installation

Replace Name_VNBnode in the first line with your moniker name.

NODE_MONIKER="Name_VNBnode"
cd $HOME
rm -rf artela
git clone https://github.com/artela-network/artela
cd artela
git checkout v0.4.7-rc4
make install

artelad config chain-id artela_11822-1
artelad init "$NODE_MONIKER" --chain-id artela_11822-1

curl -s https://t-ss.nodeist.net/artela/genesis.json > $HOME/.artelad/config/genesis.json
curl -s https://t-ss.nodeist.net/artela/addrbook.json > $HOME/.artelad/config/addrbook.json

SEEDS=""
PEERS="[email protected]:11656"
sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.artelad/config/config.toml

sed -i 's|^pruning *=.*|pruning = "custom"|g' $HOME/.artelad/config/app.toml
sed -i 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|g' $HOME/.artelad/config/app.toml
sed -i 's|^pruning-interval *=.*|pruning-interval = "10"|g' $HOME/.artelad/config/app.toml
sed -i 's|^snapshot-interval *=.*|snapshot-interval = 0|g' $HOME/.artelad/config/app.toml

sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.025art"|g' $HOME/.artelad/config/app.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.artelad/config/config.toml

sudo tee /etc/systemd/system/artelad.service > /dev/null << EOF
[Unit]
Description=artela node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which artelad) start
Restart=on-failure
RestartSec=10
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF

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

snap install lz4
curl -L https://t-ss.nodeist.net/artela/snapshot_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.artelad --strip-components 2


sudo systemctl daemon-reload
sudo systemctl enable artelad
sudo systemctl start artelad

Check logs

sudo journalctl -fu artelad -o cat

Create Wallet

artelad keys add wallet

Please enter 24 characters into C98 wallet to get the wallet address from the ETH chain

Use that ETH wallet address to go to the project's Discord to faucet

Create Validator

artelad tx staking create-validator \
--amount="1000000art" \
--pubkey=$(artelad tendermint show-validator) \
--moniker="Name-VNBnode" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas="200000" \
--chain-id=artela_11822-1 \
--from=wallet

Edit Validator

artelad tx staking edit-validator \
--new-moniker "NewName-VNBnode" \
--identity "06F5F34BD54AA6C7" \
--website "https://vnbnode.com" \
--commission-rate="0.01" \
--chain-id=artela_11822-1 \
--from=wallet

Visit Explorer

Upgrade

sudo systemctl stop artela
cd $HOME
rm -rf artela
git clone https://github.com/artela-network/artela
cd artela
git checkout v0.4.7-rc6
make install
sed -E 's/^pool-size[[:space:]]*=[[:space:]]*[0-9]+$/apply-pool-size = 10\nquery-pool-size = 30/' ~/.artelad/config/app.toml > ~/.artelad/config/temp.app.toml && mv ~/.artelad/config/temp.app.toml ~/.artelad/config/app.toml
sudo systemctl restart artelad && sudo journalctl -u artelad -f

Remove Node

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

Command

Sync info

artelad status 2>&1 | jq .SyncInfo

Validator info

artelad status 2>&1 | jq .ValidatorInfo

Node info

artelad status 2>&1 | jq .NodeInfo

Show node id

artelad tendermint show-node-id

List of wallets

artelad keys list

Recover wallet

artelad keys add wallet --recover

Delete wallet

artelad keys delete wallet

Get wallet balance

artelad query bank balances $ARTELA_WALLET_ADDRESS

Transfer funds

artelad tx bank send $ARTELA_WALLET_ADDRESS <TO_ARTELA_WALLET_ADDRESS> 10000000uart

Voting

artelad tx gov vote 1 yes --from wallet --chain-id=$ARTELA_CHAIN_ID

Staking, Delegation and Rewards Delegate stake

artelad tx staking delegate $ARTELA_VALOPER_ADDRESS 10000000uart --from=wallet --chain-id=$ARTELA_CHAIN_ID --gas=auto

Redelegate stake from validator to another validator

artelad tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000uart --from=wallet --chain-id=$ARTELA_CHAIN_ID --gas=auto

Withdraw all rewards

artelad tx distribution withdraw-all-rewards --from=wallet --chain-id=$ARTELA_CHAIN_ID --gas=auto

Withdraw rewards with commision

artelad tx distribution withdraw-rewards $ARTELA_VALOPER_ADDRESS --from=wallet --commission --chain-id=$ARTELA_CHAIN_ID

Thank to support VNBnode.

Visit us at: