Visit our website Join our discord Visit our website
Deploy your VPS using our referral link to get 20€ bonus
Official documentation:
Explorer:
To set up monitoring for your validator node navigate to Set up monitoring and alerting for agoric validator
To migrate your validator to another machine read Migrate your validator to another machine
You can setup your agoric fullnode in few minutes by using automated script below. It will prompt you to input your validator node name!
wget -O agoric_devnet.sh https://raw.githubusercontent.com/kj89/testnet_manuals/main/agoric/agoric_devnet.sh && chmod +x agoric_devnet.sh && ./agoric_devnet.sh
You can follow manual guide if you better prefer setting up node manually
When installation is finished please load variables into system
source $HOME/.bash_profile
Next you have to make sure your validator is syncing blocks. You can use command below to check synchronization status
agd status 2>&1 | jq .SyncInfo
To create new wallet you can use command below. Don’t forget to save the mnemonic
agd keys add $WALLET
(OPTIONAL) To recover your wallet using seed phrase
agd keys add $WALLET --recover
To get current list of wallets
agd keys list
Add wallet address
WALLET_ADDRESS=$(agd keys show $WALLET -a)
Add valoper address
VALOPER_ADDRESS=$(agd keys show $WALLET --bech val -a)
Load variables into system
echo 'export WALLET_ADDRESS='${WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export VALOPER_ADDRESS='${VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
To get free tokens in agoricdev-11 testnet:
- navigate to Agoric official discord
- open
#faucet
channel underDEVELOPMENT
category - input command:
!faucet client <WALLET_ADDRESS>
Before creating validator please make sure that you have at least 1 bld (1 bld is equal to 1000000 ubld) and your node is synchronized
To check your wallet balance:
agd query bank balances $WALLET_ADDRESS
If your wallet does not show any balance than probably your node is still syncing. Please wait until it finish to synchronize and then continue
To create your validator run command below
agd tx staking create-validator \
--amount 1000000ubld \
--from $WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(agd show-validator) \
--moniker $NODENAME \
--chain-id $CHAIN_ID
To protect you keys please make sure you follow basic security rules
Good tutorial on how to set up ssh keys for authentication to your server can be found here
Start by checking the status of ufw.
sudo ufw status
Sets the default to allow outgoing connections, deny all incoming except ssh and 26656. Limit SSH login attempts
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh/tcp
sudo ufw limit ssh/tcp
sudo ufw allow 26656,26660,26657,1317/tcp
sudo ufw enable
To monitor and get alerted about your validator health status you can use my guide on Set up monitoring and alerting for agoric validator
This script will help you to estimate how much time it will take to fully synchronize your node
It measures average blocks per minute that are being synchronized for period of 5 minutes and then gives you results
wget -O synctime.py https://raw.githubusercontent.com/kj89/testnet_manuals/main/agoric/tools/synctime.py && python3 ./synctime.py
curl -sS http://localhost:26657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
Check logs
journalctl -fu agd -o cat
Start service
systemctl start agd
Stop service
systemctl stop agd
Restart service
systemctl restart agd
Synchronization info
agd status 2>&1 | jq .SyncInfo
Validator info
agd status 2>&1 | jq .ValidatorInfo
Node info
agd status 2>&1 | jq .NodeInfo
Show node id
agd show-node-id
List of wallets
agd keys list
Recover wallet
agd keys add $WALLET --recover
Delete wallet
agd keys delete $WALLET
Get wallet balance
agd query bank balances $WALLET_ADDRESS
Transfer funds
agd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 10000000ubld
agd tx gov vote 1 yes --from $WALLET --chain-id=$CHAIN_ID
Delegate stake
agd tx staking delegate $VALOPER_ADDRESS 10000000ubld --from=$WALLET --chain-id=$CHAIN_ID --gas=auto
Redelegate stake from validator to another validator
agd tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000ubld --from=$WALLET --chain-id=$CHAIN_ID --gas=auto
Withdraw all rewards
agd tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$CHAIN_ID --gas=auto
Withdraw rewards with commision
agd tx distribution withdraw-rewards $VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$CHAIN_ID
Edit validator
agd tx staking edit-validator \
--moniker=$NODENAME \
--identity=<your_keybase_id> \
--website="<your_website>" \
--details="<your_validator_description>" \
--chain-id=$CHAIN_ID \
--from=$WALLET
Unjail validator
agd tx slashing unjail \
--broadcast-mode=block \
--from=$WALLET \
--chain-id=$CHAIN_ID \
--gas=auto
This commands will completely remove node from server. Use at your own risk!
systemctl stop agd
systemctl disable agd
rm /etc/systemd/system/agd.service -rf
rm $(which agd) -rf
rm $HOME/.agoric* -rf
rm $HOME/agoric-sdk -rf
sed -i '/AGORIC_/d' ~/.bash_profile