Service operations ⚙️
Check logs
Copy sudo journalctl -u crossfid -f
Start service
Copy sudo systemctl start crossfid
Stop service
Copy sudo systemctl stop crossfid
Restart service
Copy sudo systemctl restart crossfid
Check service status
Copy sudo systemctl status crossfid
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable crossfid
Disable Service
Copy sudo systemctl disable crossfid
Sync info
Copy crossfid status 2>&1 | jq .SyncInfo
Node info
Copy crossfid status 2>&1 | jq .NodeInfo
Your node peer
Copy echo $(crossfid tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.mineplex-chain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
Copy crossfid keys add $WALLET
Restore executing wallet
Copy crossfid keys add $WALLET --recover
List All Wallets
Delete wallet
Copy crossfid keys delete $WALLET
Check Balance
Copy crossfid q bank balances $( crossfid keys show $WALLET -a )
Export Key (save to wallet.backup)
Copy crossfid keys export $WALLET
View EVM Prived Key
Copy crossfid keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy crossfid keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
Copy crossfid tx distribution withdraw-all-rewards --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx
Withdraw rewards and commission from your validator
Copy 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 -y
Check your balance
Copy crossfid query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy 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 -y
Delegate
Copy 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 -y
Redelegate Stake to Another Validator
Copy crossfid tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000mpx --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y
Unbond
Copy 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 -y
Transfer Funds
Copy crossfid tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000mpx --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y
Validator operations
Create New Validator
Copy 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 "" \
--details "" \
--chain-id crossfi-evm-testnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx \
-y
Edit Existing Validator
Copy crossfid tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id crossfi-evm-testnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx \
-y
Validator info
Copy crossfid status 2>&1 | jq .ValidatorInfo
Validator Details
Copy crossfid q staking validator $( crossfid keys show $WALLET --bech val -a )
Jailing info
Copy crossfid q slashing signing-info $( crossfid tendermint show-validator )
Slashing parameters
Copy crossfid q slashing params
Unjail validator
Copy crossfid tx slashing unjail --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y
Active Validators List
Copy 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 | nl
Check Validator key
Copy [[ $(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"
Signing info
Copy crossfid q slashing signing-info $( crossfid tendermint show-validator )
Governance
Create New Text Proposal
Copy crossfid tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000mpx \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx \
-y
Proposals List
Copy crossfid query gov proposals
View proposal
Copy crossfid query gov proposal 1
Vote
Copy crossfid tx gov vote 1 yes --from $WALLET --chain-id crossfi-evm-testnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y
Last updated 7 months ago