Cheatsheet
Key Management
Add a new wallet
Set your wallet name first:
export WALLET_NAME=
⚠️ Make sure to add some TIA coins to the wallet and update the wallet's name in the config.toml file:
cel-key add $WALLET_NAME --keyring-backend test --node.type bridge
Restore an existing wallet
Set your wallet name:
export WALLET_NAME=
Restore using your seed phrase:
cel-key add $WALLET_NAME --keyring-backend test --node.type bridge --recover --p2p.network mocha
Get wallet address
List all wallets for the bridge node:
cel-key list --node.type bridge --keyring-backend test --p2p.network mocha
Check wallet balance
Check the balance of your node wallet:
celestia state balance --node.store $HOME/.celestia-bridge-mocha-4/
Node Info
Check node status and syncing
Get the current node height, network head, and lag:
echo "Node height: $(celestia header sync-state --node.store $HOME/.celestia-bridge-mocha-4/ | jq -r '.result.height'); \
Network head: $(celestia header network-head --node.store $HOME/.celestia-bridge-mocha-4/ | jq -r '.result.header.height')" | \
awk -F'[: ]+' '{print $1" "$2": "$3"\n"$4" "$5": "$6"\nLag: "($6-$3)}'
Get Node ID
Retrieve your node ID for P2P connections:
celestia p2p info --node.store $HOME/.celestia-bridge-mocha-4/ | jq -r '.result.id'
Node Management
Generate an auth token
Generate a token and add it to the config.toml file, then restart the node:
celestia bridge auth admin --p2p.network mocha
Set permissions
Ensure proper permissions for your node data folder to allow key transfers:
chmod -R 700 ~/.celestia-bridge-mocha-4