command-line

Tokens

# Withdraw all rewards
blockxd tx distribution withdraw-all-rewards --from $WALLET --chain-id $BLOCKX_CHAIN_ID --gas=300000 --gas-prices=1000000000abcx -y 

# Withdraw rewards and commission from your validator
blockxd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --chain-id $BLOCKX_CHAIN_ID --gas=300000 --gas-prices=1000000000abcx -y 

# Check your balance
blockxd query bank balances $WALLET_ADDRESS

# Delegate to Yourself
blockxd tx staking delegate $VALOPER_ADDRESS 1000000000abcx --from $WALLET --chain-id $BLOCKX_CHAIN_ID --gas=300000 --gas-prices=1000000000abcx -y 

# Delegate to Someone else
blockxd tx staking delegate <TO_VALOPER_ADDRESS> 1000000000abcx --from $WALLET --chain-id $BLOCKX_CHAIN_ID --gas=300000 --gas-prices=1000000000abcx -y 

# Unbond
blockxd tx staking unbond $VALOPER_ADDRESS 1000000000abcx --from $WALLET --chain-id $BLOCKX_CHAIN_ID --gas=300000 --gas-prices=1000000000abcx -y 

# Transfer funds
blockxd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000000abcx --from $WALLET --chain-id $BLOCKX_CHAIN_ID --gas=300000 --gas-prices=1000000000abcx -y 


Key management

# Add New Wallet
blockxd keys add $WALLET

# Add Existing Wallet
blockxd keys add $WALLET --recover

# List Wallets
blockxd keys list

# Delete Wallet
blockxd keys delete $WALLET

# Show Wallet Address
blockxd keys show $WALLET -a

# Export Key (save to wallet.backup)
blockxd keys export $WALLET

# Import Key
blockxd keys import wallet.backup

# View EVM Prived Key
blockxd keys unsafe-export-eth-key $WALLET


Validator Operations

# check validator details
blockxd query staking validator $VALOPER_ADDRESS

# check validator info
blockxd status 2>&1 | jq

# Jailing info
blockxd q slashing signing-info $(blockxd tendermint show-validator)

# Slashing parameters
blockxd q slashing params

# Unjail validator
blockxd tx slashing unjail --from $WALLET --chain-id $name_chain --gas=300000 --gas-prices=1000000000abcx 

Service Operations

# Check Service Status
sudo systemctl status blockxd

# Start Service
sudo systemctl start blockxd

# Stop Service
sudo systemctl stop blockxd

# Restart Service
sudo systemctl restart blockxd

# Enable Service
sudo systemctl enable blockxd

# Disable Service
sudo systemctl disable blockxd

# View Logs
sudo journalctl -fu blockxd -o cat

# Reload Service
sudo systemctl daemon-reload