Service operations ⚙️
Check logs
sudo journalctl -u xprl -f
Start service
sudo systemctl start xprl
Stop service
sudo systemctl stop xprl
Restart service
sudo systemctl restart xprl
Check service status
sudo systemctl status xprl
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable xprl
Disable Service
sudo systemctl disable xprl
Sync info
xprl status 2>&1 | jq .SyncInfo
Node info
xprl status 2>&1 | jq .NodeInfo
Your node peer
echo $(xprl tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.exrpd/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
xprl keys add $WALLET
Restore executing wallet
xprl keys add $WALLET --recover
List All Wallets
xprl keys list
Delete wallet
xprl keys delete $WALLET
Check Balance
xprl q bank balances $(xprl keys show $WALLET -a)
Export Key (save to wallet.backup)
xprl keys export $WALLET
Import Key (restore from wallet.backup)
xprl keys import $WALLET wallet.backup
Tokens
To valoper address
To wallet address
Amount, ethm
Withdraw all rewards
xprl tx distribution withdraw-all-rewards --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5
Withdraw rewards and commission from your validator
xprl tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y
Check your balance
xprl query bank balances $WALLET_ADDRESS
Delegate to Yourself
xprl tx staking delegate $(xprl keys show $WALLET --bech val -a) 1000000ethm --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y
Delegate
xprl tx staking delegate <TO_VALOPER_ADDRESS> 1000000ethm --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
xprl tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000ethm --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y
Unbond
xprl tx staking unbond $(xprl keys show $WALLET --bech val -a) 1000000ethm --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y
Transfer Funds
xprl tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000ethm --gas auto --gas-adjustment 1.5 -y
Validator operations
Moniker
Identity
Details
Amount, ethm
Commission rate
Commission max rate
Commission max change rate
Create New Validator
xprl tx staking create-validator \
--amount 1000000ethm \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(xprl tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id xrplevm_1449000-1 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Existing Validator
xprl tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id xrplevm_1449000-1 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
xprl status 2>&1 | jq .ValidatorInfo
Validator Details
xprl q staking validator $(xprl keys show $WALLET --bech val -a)
Jailing info
xprl q slashing signing-info $(xprl tendermint show-validator)
Slashing parameters
xprl q slashing params
Unjail validator
xprl tx slashing unjail --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y
Active Validators List
xprl q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
[[ $(xprl q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(xprl status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
xprl q slashing signing-info $(xprl tendermint show-validator)
Governance
Title
Description
Deposit, ethm
Create New Text Proposal
xprl tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000ethm \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
xprl query gov proposals
Proposal ID
Proposal option
View proposal
xprl query gov proposal 1
Vote
xprl tx gov vote 1 yes --from $WALLET --chain-id xrplevm_1449000-1 --gas auto --gas-adjustment 1.5 -y