Cheatsheet
Useful Commands
to check logs of your node
sudo journalctl -u crossfid -fto start your node service
sudo systemctl start crossfidStop service
sudo systemctl stop crossfidRestart node
sudo systemctl restart crossfidto check sync status
crossfid status 2>&1 | jq .SyncInfoNode info
crossfid status 2>&1 | jq .NodeInfoshow node ID
crossfid tendermint show-node-iddelete wallet
crossfid keys delete $WALLETto check wallet balance
crossfid q bank balances $(crossfid keys show $WALLET -a)transfer funds to another wallet
crossfid tx bank send $CROSSFI_WALLET_ADDRESS <TO_CROSSFI_WALLET_ADDRESS> 1000000mpx --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpxView evm priv key
crossfid keys unsafe-export-eth-key $WALLETWithdraw all rewards
crossfid tx distribution withdraw-all-rewards --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpxwithdraw rewards and comission from your validator
crossfid tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -ycheck your balance
crossfid query bank balances $WALLET_ADDRESSdelegate to your self
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 -ydelegate
crossfid tx staking delegate <TO_VALOPER_ADDRESS> 1000000mpx --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -yredelegate stake to another validator
crossfid tx staking delegate <TO_VALOPER_ADDRESS> 1000000mpx --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -yunbound stake
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 funds
crossfid tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000mpx --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -yEdit exsisting validator
you can edit your validator using this command
crossfid --home ${DAEMON_HOME} tx staking edit-validator
--moniker="${MONIKER}" \
--website="${WEBSITE}" \
--identity=${DISPLAY_PIC} \
--details="${DETAILS}" \
--chain-id="crossfi-evm-testnet-1" \
--gas="auto" \
--gas-prices="10000000000000mpx" \
--gas-adjustment=1.5 \
--from=<key_name> \
--commission-rate="0.10"validator details
crossfid q staking validator $(crossfid keys show $WALLET --bech val -a)jailing info
crossfid q slashing signing-info $(crossfid tendermint show-validator)unjail validator
crossfid tx slashing unjail --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -yactive set validator
crossfid 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 | nlcheck validator keys
[[ $(crossfid q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(crossfid status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Last updated