Chain ID: test6
| Node Version: chain/test6
note
You Need Set This Variabels!!!, for address you can generate first
RPC="https://gnoland-testnet-rpc.shazoes.xyz"
MONIKER="Your_Moniker"
ADDRESS="Your_Address_Wallet"
VALOPER=$(gnoland secrets get validator_key | jq -r '.address')
PUBKEY=$(gnoland secrets get validator_key | jq -r '.pub_key')
echo "export RPC=\"$RPC\"" >> $HOME/.bash_profile
echo "export MONIKER=\"$MONIKER\"" >> $HOME/.bash_profile
echo "export ADDRESS=\"$ADDRESS\"" >> $HOME/.bash_profile
echo "export VALOPER=\"$VALOPER\"" >> $HOME/.bash_profile
echo "export PUBKEY=\"$PUBKEY\"" >> $HOME/.bash_profile
echo "export GNOLAND_CHAIN_ID="test6"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Service
- Utility
- Delete
Wallet
Create Wallet
gnokey add wallet
Recovery Wallet
gnokey add wallet --recover
List All Wallet
gnokey list
Delete Wallet
gnokey delete wallet
Check Wallet Balance
gnokey query -remote $RPC auth/accounts/$ADDRESS
Validator
note
Make sure you have set Variabels
Register
DESCRIPTION="Your_Description"
ACCOUNT_INFO=$(gnokey query -remote $RPC auth/accounts/$ADDRESS)
ACCOUNT_JSON=$(echo "$ACCOUNT_INFO" | sed -n '/^data:/,$p' | sed 's/^data: //')
ACCOUNT_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.account_number')
SEQUENCE_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.sequence')
gnokey maketx call -pkgpath "gno.land/r/gnoland/valopers" -func "Register" -args $MONIKER -args $DESCRIPTION -args $VALOPER -args $PUBKEY -gas-fee 1000000ugnot -gas-wanted 15000000 -send "" $ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid $GNOLAND_CHAIN_ID -account-number $ACCOUNT_NUMBER -account-sequence $SEQUENCE_NUMBER $ADDRESS
gnokey broadcast -remote $RPC call.tx
Update Moniker
NEWMONIKER="Your_New_Moniker"
ACCOUNT_INFO=$(gnokey query -remote $RPC auth/accounts/$ADDRESS)
ACCOUNT_JSON=$(echo "$ACCOUNT_INFO" | sed -n '/^data:/,$p' | sed 's/^data: //')
ACCOUNT_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.account_number')
SEQUENCE_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.sequence')
gnokey maketx call -pkgpath "gno.land/r/gnoland/valopers" -func "UpdateMoniker" -args $VALOPER -args $NEWMONIKER -gas-fee 1000000ugnot -gas-wanted 15000000 -send "" $ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid $GNOLAND_CHAIN_ID -account-number $ACCOUNT_NUMBER -account-sequence $SEQUENCE_NUMBER $ADDRESS
gnokey broadcast -remote $RPC call.tx
Update Description
NEWDESCRIPTION="Your_Description"
ACCOUNT_INFO=$(gnokey query -remote $RPC auth/accounts/$ADDRESS)
ACCOUNT_JSON=$(echo "$ACCOUNT_INFO" | sed -n '/^data:/,$p' | sed 's/^data: //')
ACCOUNT_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.account_number')
SEQUENCE_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.sequence')
gnokey maketx call -pkgpath "gno.land/r/gnoland/valopers" -func "UpdateDescription" -args $VALOPER -args $NEWDESCRIPTION -gas-fee 1000000ugnot -gas-wanted 15000000 -send "" $ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid $GNOLAND_CHAIN_ID -account-number $ACCOUNT_NUMBER -account-sequence $SEQUENCE_NUMBER $ADDRESS
gnokey broadcast -remote $RPC call.tx
Update Keep Running
Set false / true
BOOLEAN="false"
ACCOUNT_INFO=$(gnokey query -remote $RPC auth/accounts/$ADDRESS)
ACCOUNT_JSON=$(echo "$ACCOUNT_INFO" | sed -n '/^data:/,$p' | sed 's/^data: //')
ACCOUNT_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.account_number')
SEQUENCE_NUMBER=$(echo "$ACCOUNT_JSON" | jq -r '.BaseAccount.sequence')
gnokey maketx call -pkgpath "gno.land/r/gnoland/valopers" -func "UpdateKeepRunning" -args $VALOPER -args $BOOLEAN -gas-fee 1000000ugnot -gas-wanted 15000000 -send "" $ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid $GNOLAND_CHAIN_ID -account-number $ACCOUNT_NUMBER -account-sequence $SEQUENCE_NUMBER $ADDRESS
gnokey broadcast -remote $RPC call.tx
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable gnoland
Disable Service
sudo systemctl disable gnoland
Start Service
sudo systemctl start gnoland
Stop Service
sudo systemctl stop gnoland
Restart Service
sudo systemctl restart gnoland
Check Service Status
sudo systemctl status gnoland
Check Service Logs
sudo journalctl -u gnoland -f --no-hostname -o cat
Utility
note
Change 42657 to your port rpc
Get Validator Key
gnoland secrets get validator_key
Get Validator Info
curl -s -H "Content-type: application/json" -d '{
"jsonrpc": "2.0",
"method": "status",
"params": [],
"id": 1
}' 'http://127.0.0.1:42657' | jq '.result.validator_info'
Get Sync Status
curl -s -H "Content-type: application/json" -d '{
"jsonrpc": "2.0",
"method": "status",
"params": [],
"id": 1
}' 'http://127.0.0.1:42657' | jq '.result.sync_info.catching_up'
Get Latest Height
curl -s -H "Content-type: application/json" -d '{
"jsonrpc": "2.0",
"method": "status",
"params": [],
"id": 1
}' 'http://127.0.0.1:42657' | jq '.result.sync_info.latest_block_height'
Get Node Peer
SERVER_IP=$(curl -4 -s ifconfig.me)
gnoland secrets get node_id.p2p_address | sed "s/0\.0\.0\.0/$SERVER_IP/"
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop gnoland && sudo systemctl disable gnoland && sudo rm /etc/systemd/system/gnoland.service && sudo systemctl daemon-reload && sudo rm -rf $(which gnoland) && sudo rm -rf $(which gnogenesis) && rm -rf $HOME/gnoland-data && rm -rf $HOME/gno