Skip to main content

Artela

Minimum Specifications

SpecSize
CPU8
RAM16 GB
SSD800 GB

Install Dependencies

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.3.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

Build

git clone https://github.com/artela-network/artela
cd artela
git checkout main
make clean && make build
mv build/artelad /usr/local/bin
artelad version

Setup

  • Init
edit YourNAME
artelad config node tcp://localhost:33957
artelad config keyring-backend test
artelad config chain-id artela_11822-1
artelad init YourNAME --chain-id artela_11822-1
wget https://docs.artela.network/assets/files/genesis-314f4b0294712c1bc6c3f4213fa76465.json -O $HOME/.artelad/config/genesis.json

Add wallet / recover

artelad keys add wallet

Set minimum gas etc.

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.02uart\"/;" ~/.artelad/config/app.toml
external_address=$(wget -qO- eth0.me)
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.artelad/config/config.toml
peers="bec6934fcddbac139bdecce19f81510cb5e02949@47.254.24.106:26656,32d0e4aec8d8a8e33273337e1821f2fe2309539a@47.88.58.36:26656,1bf5b73f1771ea84f9974b9f0015186f1daa4266@47.251.14.47:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.artelad/config/config.toml
seeds=""
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.artelad/config/config.toml

Prunning

pruning="custom" && \
pruning_keep_recent="1000" && \
pruning_keep_every="0" && \
pruning_interval="10" && \
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.artelad/config/app.toml && \
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.artelad/config/app.toml && \
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.artelad/config/app.toml && \
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.artelad/config/app.toml

Indexer

indexer="null" && \
sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.artelad/config/config.toml

Custom Port

sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:33958\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:33957\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:33960\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:33956\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":33966\"%" $HOME/.artelad/config/config.toml
sed -i -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://0.0.0.0:33917\"%; s%^address = \":8080\"%address = \":13980\"%; s%^address = \"localhost:9090\"%address = \"0.0.0.0:33990\"%; s%^address = \"localhost:9091\"%address = \"0.0.0.0:33991\"%; s%:8545%:33945%; s%:8546%:33946%; s%:6065%:33965%" $HOME/.artelad/config/app.toml

Download Addrbook

wget https://arweave.net/qz9TB09AgCf7h7n-w-FGxs5CUmSso10Z2rx3iuwVIuM -O $HOME/.artelad/config/addrbook.json

Create Service

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

State Sync (Optional)

cp $HOME/.artelad/data/priv_validator_state.json $HOME/.artelad/priv_validator_state.json.backup
artelad tendermint unsafe-reset-all --keep-addr-book --home $HOME/.artelad
STATE_SYNC_RPC=http://47.251.14.47:26657

sed -i \
-e "s|^enable *=.*|enable = true|" \
-e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
-e "s|^trust_height *=.*|trust_height = 114011|" \
-e "s|^trust_hash *=.*|trust_hash = \"94077D92B3DE77C3AE94BEBF496601E7CBA3EEF7CD7E17BD8513F16D9DDA8712\"|" \
$HOME/.artelad/config/config.toml

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

Run

sudo systemctl daemon-reload
sudo systemctl enable artela
sudo systemctl restart artela && sudo journalctl -u artela -f -o cat

Check logs

sudo journalctl -fu artela -o cat

Check syncInfo

artelad status 2>&1 | jq .SyncInfo

Explorer

faucet

  • Export PK
artelad keys unsafe-export-eth-key wallet
  • Import to Metamask
  • Request on discord with $request 0x...........

Register validator

  • After Sync
change YourNAME

Don't forget to change YourNAME to your Name

artelad tx staking create-validator \
--amount 1000000uart \
--from wallet \
--commission-max-change-rate "0.2" \
--commission-max-rate "1" \
--commission-rate "0.1" \
--min-self-delegation "1" \
--details="" \
--identity="" \
--security-contact "emailmu@email.co" \
--pubkey $(artelad tendermint show-validator) \
--moniker YourNAME \
--gas="200000" \
--chain-id artela_11822-1

Important things you need to backup

  1. MNEMONIC Pharse
  2. /.artelad/data/priv_validator_state.json file

Delete

Delete nodes

⚠️ If you want to delete ⚠️

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