> For the complete documentation index, see [llms.txt](https://docs.cryptonode.id/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cryptonode.id/en/mainnet/crossfi/cheat-sheet.md).

# Cheat Sheet

If you use our auto-installation, we've included several scripts like:

```sh
./list_keys_mainnet.sh
./check_balance_mainnet.sh
./create_validator_mainnet.sh
./unjail_validator_mainnet.sh
./check_validator_mainnet.sh
./start_crossfi_mainnet.sh
./check_log_mainnet.sh
```

Here's other useful commands you might need

## ⚙️Service operations <a href="#service-operations" id="service-operations"></a>

### Check logs

```sh
sudo journalctl -fu crossfi-mainnet
```

### Check service status

```sh
sudo systemctl status crossfi-mainnet
```

### Reload service

```
sudo systemctl daemon-reload
```

### Enable service

```
sudo systemctl enable crossfi-mainnet
```

### Disable service

```
sudo systemctl disable crossfi-mainnet
```

### Start service

```
sudo systemctl start crossfi-mainnet
```

### Stop service

```
sudo systemctl stop crossfi-mainnet
```

### Restart service

```
sudo systemctl status crossfi-mainnet
```

## 🖥️Node operations

### Node info

```
crossfid status 2>&1 | jq .NodeInfo
```

### Sync info

```
crossfid status 2>&1 | jq .SyncInfo
```

### Add new wallet

```
crossfid keys add $WALLET
```

### Restore wallet

```
crossfid keys add $WALLET --recover
```

### List all wallets

```
crossfid keys list
```

### Check balance

```
crossfid q bank balances $(crossfid keys show $WALLET -a)
```

## 💱Transaction operations

Withdraw all rewards

{% code overflow="wrap" %}

```sh
crossfid tx distribution withdraw-all-rewards --from $WALLET --chain-id mineplex-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000000mpx
```

{% endcode %}

Self delegate

{% code overflow="wrap" %}

```
crossfid tx staking delegate $(crossfid keys show $WALLET --bech val -a) 1000000mpx --from $WALLET --chain-id mineplex-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000000mpx -y
```

{% endcode %}

Unbond

{% code overflow="wrap" %}

```
crossfid tx staking unbond $(crossfid keys show $WALLET --bech val -a) 1000000mpx --from $WALLET --chain-id mineplex-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000000mpx -y
```

{% endcode %}

Transfer token

{% code overflow="wrap" %}

```
crossfid tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000mpx --gas auto --gas-adjustment 1.5 --gas-prices 5000000000000mpx -y
```

{% endcode %}

## ✅Validator operations

Create validator

{% code overflow="wrap" %}

```sh
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 mineplex-mainnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 5000000000000mpx \
-y
```

{% endcode %}

{% hint style="info" %}
Can follow this guide to get your keybase pgp : <https://docs.harmony.one/home/network/validators/managing-a-validator/adding-a-validator-logo>
{% endhint %}

Edit validator

{% code overflow="wrap" %}

```sh
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 mineplex-mainnet-1 \
--gas auto --gas-adjustment 1.5 --gas-prices 5000000000000mpx \
-y
```

{% endcode %}

{% hint style="info" %}
You can leave any field blank if you don't want to change it
{% endhint %}
