Chain ID: tellor-1
| Node Version: v5.1.1
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export TELLOR_CHAIN_ID="tellor-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
layerd keys add wallet
Recovery Wallet
layerd keys add wallet --recover
List All Wallet
layerd keys list
Delete Wallet
layerd keys delete wallet
Check Wallet Balance
layerd q bank balances $(layerd keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
layerd tx staking create-validator \
--amount=1000000loya \
--pubkey=$(layerd tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$TELLOR_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=0.001loya
Edit Validator
layerd tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$TELLOR_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=0.001loya
Check Jailed Reason
layerd query slashing signing-info $(layerd tendermint show-validator)
Unjail Validator
layerd tx slashing unjail --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Token
Withdraw Rewards
layerd tx distribution withdraw-all-rewards --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Withdraw Rewards with Comission
layerd tx distribution withdraw-rewards $(layerd keys show wallet --bech val -a) --commission --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Delegate Tokens to Your Validator
layerd tx staking delegate $(layerd keys show wallet --bech val -a) 1000000loya --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Redelegate Tokens to Another Validator
layerd tx staking redelegate $(layerd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000loya --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Unbond Tokens from Your Validator
layerd tx staking unbond $(layerd keys show wallet --bech val -a) 1000000loya --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Send Tokens to Any Wallet
layerd tx bank send wallet <TO_WALLET_ADDRESS> 1000000loya --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable layerd
Disable Service
sudo systemctl disable layerd
Start Service
sudo systemctl start layerd
Stop Service
sudo systemctl stop layerd
Restart Service
sudo systemctl restart layerd
Check Service Status
sudo systemctl status layerd
Check Service Logs
sudo journalctl -u layerd -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
layerd tx gov vote 1 yes --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
List all Proposals
layerd query gov proposals
Check Vote
layerd tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $TELLOR_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.001loya -y
Create new Proposal
layerd tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000loya \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=0.001loya \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.layer/config/config.toml
Get Validator Info
layerd status 2>&1 | jq .ValidatorInfo
Get Denom Info
layerd q bank denom-metadata -oj | jq
Get Sync Status
layerd status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
layerd status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(layerd tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.layer/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.001loya\"/" $HOME/.layer/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.layer/config/config.toml
Reset Chain Data
layerd tendermint unsafe-reset-all --home $HOME/.layer --keep-addr-book
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 layerd && sudo systemctl disable layerd && sudo rm /etc/systemd/system/layerd.service && sudo systemctl daemon-reload && sudo rm -rf $(which layerd) && rm -rf $HOME/.layer