Cheat Sheet
If you use our auto-installation, we've included several scripts under ./scripts folder like:
./list_keys_testnet.sh
./check_balance_testnet.sh
./create_validator_testnet.sh
./unjail_validator_testnet.sh
./check_validator_testnet.sh
./start_crossfi_testnet.sh
./check_log_testnet.shHere's other useful commands you might need
⚙️Service operations
sudo journalctl -fu crossfi-testnetsudo systemctl daemon-reloadsudo systemctl enable crossfi-testnetsudo systemctl disable crossfi-testnetsudo systemctl start crossfi-testnetsudo systemctl stop crossfi-testnetsudo systemctl status crossfi-testnetsudo systemctl status crossfi-testnet🖥️Node operations
crossfid status | jqcrossfid status 2>&1 | jq .NodeInfocrossfid status 2>&1 | jq .SyncInfo🗝️Key Management
crossfid keys add $WALLETcrossfid keys add $WALLET --recovercrossfid keys listcrossfid q bank balances $(crossfid keys show $WALLET -a)💱Transaction operations
Withdraw all rewards
crossfid tx distribution withdraw-all-rewards --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpxSelf delegate
crossfid tx staking delegate $(crossfid keys show $WALLET --bech val -a) 1000000mpx --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -yUnbond
crossfid tx staking unbond $(crossfid keys show $WALLET --bech val -a) 1000000mpx --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -yTransfer token
crossfid tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000mpx --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y✅Validator operations
Create validator
crossfid tx staking create-validator \
--amount 1000000mpx \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(crossfid tendermint show-validator) \
--moniker "$MONIKER" \
--identity "put your keybase pgp here" \
--details "anything you want to say here" \
--chain-id crossfi-evm-testnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx \
-yEdit validator
crossfid tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "put your keybase pgp here" \
--details "anything you want to say here" \
--from $WALLET \
--chain-id crossfi-evm-testnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx \
-yUnjail Validator
crossfid tx slashing unjail \
--from $WALLET \
--chain-id crossfi-evm-testnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y Last updated
Was this helpful?