"Artela" testnet services 

Official DOCS HERE

RPC  : https://rpc-artela.theamsolutions.info
API  : https://rest-artela.theamsolutions.info
 JSON RPC  : https://json_rpc-artela.theamsolutions.info
gRPC  : grpc-artela.theamsolutions.info
PEER : b23bc610c374fd071c20ce4a2349bf91b8fbd7db@65.108.72.233:11656

EXPLORER : https://explorer.theamsolutions.info

NODE SETUP 

 

Install GO and dependencies HERE

#install binaries
cd $HOME
git clone https://github.com/artela-network/artela
cd artela
v=$(curl -s https://rpc-artela.theamsolutions.info/abci_info| jq -r .result.response.version)
git checkout $v
make install

#init node (create node working directory)
artelad init "<NODE_NAME>" --chain-id artela_11822-1

#set params
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

#download genesis
wget -qO $HOME/.artelad/config/genesis.json https://docs.artela.network/assets/files/genesis-314f4b0294712c1bc6c3f4213fa76465.json

#download addrbook
wget -qO $HOME/.artelad/config/addrbook.json https://snapshots.theamsolutions.info/artela-addrbook.json

#create systemd service file
sudo tee /etc/systemd/system/artelad.service << EOF
[Unit]
Description="Artela Testnet"
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which artelad) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF

#changing ports to non default (if necessary)
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:39658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:39657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:39060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:39656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":39660\"%" $HOME/.artelad/config/config.toml

sed -i.bak -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://0.0.0.0:39317\"%; s%^address = \"localhost:9090\"%address = \"localhost:39090\"%; s%^address = \"localhost:9091\"%address = \"localhost:39091\"%; s%^address = \"127.0.0.1:8545\"%address = \"127.0.0.1:39545\"%; s%^ws-address = \"127.0.0.1:8546\"%ws-address = \"127.0.0.1:39546\"%" $HOME/.artelad/config/app.toml

#run node / check logs
artelad tendermint unsafe-reset-all --keep-addr-book
sudo systemctl daemon-reload
sudo systemctl enable artelad.service
sudo systemctl restart artelad.service
sudo journalctl -u artelad.service -fn 50 -o cat

#press ctrl+c to exit the logs screen


 

 DATA SNAPSHOT
 (State-Synced, not full data)
(updated ~every 5 hrs.)
 

#snapshot info check : curl -s https://snapshots.theamsolutions.info | egrep -o ">artela-snap*.*tar" | tr -d ">"

snap=$(curl -s https://snapshots.theamsolutions.info/ | egrep -o ">artela-snap*.*tar" | tr -d ">")
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
sudo systemctl stop artelad.service
mv $HOME/.artelad/data/priv_validator_state.json $HOME
rm -rf $HOME/.artelad/data
tar xf $HOME/${snap} -C $HOME/.artelad; rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.artelad/data/
wget -qO $HOME/.artelad/config/addrbook.json https://snapshots.theamsolutions.info/artela-addrbook.json
sudo systemctl restart artelad.service
sudo journalctl -u artelad.service -fn 50 -o cat

 

 

STATE SYNC SERVICE

Please make sure You have latest, officially launched version of Artela binaries.
Check current version : curl -s https://rpc-artela.theamsolutions.info/abci_info| jq -r .result.response.version


sudo systemctl stop artelad.service
artelad tendermint unsafe-reset-all --home $HOME/.artelad

SNAP_RPC="https://rpc-artela.theamsolutions.info:443"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000)); \
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\"|" $HOME/.artelad/config/config.toml; \
wget -qO $HOME/.artelad/config/addrbook.json https://snapshots.theamsolutions.info/artela-addrbook.json

sudo systemctl restart artelad.service
sudo journalctl -u artelad.service -fn 50 -o cat

 

CREATE VALIDATOR

 

#generate new key, request tokens from faucet
artelad keys add <KEY_NAME>

artelad tx staking create-validator \
--amount="900000000000000000uart" \
--pubkey=$(artelad tendermint show-validator) \
--moniker="<MONIKER>" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.10" \
--min-self-delegation="1" \
--gas="200000" \
--from <KEY_NAME> \
--chain-id artela_11822-1

USEFUL COMMANDS

 

#check if node synced, false = synced
artelad status | jq .SyncInfo.catching_up

#generate new key
artelad keys add <KEY_NAME>

#check available keys
artelad keys list

#check balance
artelad q bank balances $(artelad keys show <KEY_NAME> --address)

#get HEX(EIP-55) key
artelad debug addr $(artelad keys show <KEY_NAME> --address)

#unjail validator
artelad tx slashing unjail --from <KEY_NAME>

#check validator status/info
artelad q staking validator $(artelad keys show <KEY_NAME> --bech val | grep  address | cut -c 12-)

#get validator address (artvaloper1...)
artelad keys show <KEY_NAME> --bech val | grep  address | cut -c 12-

#withdraw staking rewards 
artelad tx  distribution withdraw-rewards <artvaloper1...>  --commission --yes --from <KEY_NAME>  --chain-id artela_11822-1

#delegate to a validator
 artelad tx staking delegate <artvaloper1...> 1000000000000000000uart --from <KEY_NAME> --chain-id artela_11822-1







 

GOOD LUCK!

 

AM Solutions © Copyright. All rights reserved.

We need your consent to load the translations

We use a third-party service to translate the website content that may collect data about your activity. Please review the details and accept the service to view the translations.