Useful Commands
Mocha Testnet · mocha-5
Everyday service, key, token and validator operations on one page. Bridge commands use the existing BlockPro deployment below. Consensus and validator commands use the separate consensus installation.
Use the validator account name and file keyring from our setup. Replace address and fee placeholders before use. Transaction confirmation remains interactive. 1 TIA = 1,000,000 utia; keep additional funds for fees.
Service operations
Select service
Select the existing BlockPro bridge below. On the public Mocha consensus server, use SERVICE=celestia-mocha-5.service. On the validator, use SERVICE=celestia-appd.service; a light node from the generic guide uses SERVICE=celestia-light.service.
SERVICE=celestia-bridge-mocha.serviceStatus
Check the selected systemd service.
sudo systemctl status "$SERVICE" --no-pagerStart
Start the node.
sudo systemctl start "$SERVICE"Stop
Stop the node.
Restart
Restart after a configuration change.
Recent logs
Show the last 100 log lines.
Follow logs
Follow logs; Ctrl+C leaves the log view.
Bridge version
Show the version used by the active Mocha bridge process. The upgrade target is 0.35.0-mocha.
Revoke a DA RPC token
An administrator can retire one JWT on a Mocha DA node running v0.35.0-mocha. Set TOKEN_TO_REVOKE to that JWT and ADMIN_TOKEN to an authorized admin JWT in your shell. Use the private DA RPC listener configured for your bridge. The example uses its default local port.
Revocation survives a restart and closes WebSocket sessions authenticated with that token. Upstream token revocation
Bridge disk space
Check free space on the existing bridge store filesystem.
Bridge synchronization
Read the bridge log and confirm new head heights and sampling continue.
Running consensus and Fibre versions
Run on the corresponding host. These commands check the executables of the active services, even when another binary is present in your shell's PATH. The Mocha target for both is 10.6.0-mocha.
Run this only if the host has Fibre:
If MainPID=0 or a unit is not found, inspect the service before running the version command:
The existing BlockPro Mocha validator uses /root/go/bin/celestia-appd and /root/go/bin/fibre. Use Upgrade to replace those exact files.
Public consensus version
The existing public Mocha RPC node uses /opt/celestia-mocha-5/bin/celestia-appd. Check its running process; the target is 10.6.0-mocha.
Inspect its service and binary path.
Follow the public consensus upgrade for this deployment.
Consensus sync status
Run on the consensus host only. Check height, block time and catching_up; this is not the bridge RPC. Consensus RPC examples use port 26657; replace it with your configured RPC port when using custom ports.
Consensus peer count
Count consensus peers.
Consensus disk space
Check available space.
Consensus data size
Measure consensus data usage.
Key management
These are celestia-app operator accounts. DA keys use cel-key; consensus signing keys are separate.
Create
Create an encrypted operator wallet; store its recovery phrase offline.
Recover
Recover an existing wallet through the interactive prompt.
List
List local operator wallets.
Account address
Show the account address.
Validator address
Show the validator operator address.
Rename
Rename the local key and use the new name in later commands.
Tokens
Set gas price
Replace the placeholder with a gas price accepted by your network, including the utia denomination.
Balance
Read an account balance.
Send
Send 1 TIA and review the destination before confirming.
Delegate
Delegate 1 TIA to the chosen validator.
Withdraw rewards
Withdraw rewards from the chosen validator.
Unbond
Begin undelegating 1 TIA; the network unbonding period applies.
Transaction status
Check inclusion and execution code; use an indexed endpoint if needed.
Validator operations
Details
Inspect status, stake, commission and jailed state.
Consensus public key
Show the local consensus public key.
Set gas price
Set an accepted gas price including the utia denomination.
Edit name
Update the public validator name.
Commission and rewards
Withdraw your validator commission and rewards.
Unjail
Use only after fixing the cause of jailing; tombstoned validators cannot unjail.
For initial registration, follow Validator Node.