πŸš€galacticad CLI Usage Cheat Sheet

This guide provides essential commands for managing your account and validator on the Galactica Network using the galacticad CLI.

Installation and Setup

For detailed instructions on installing galacticad, please refer to our comprehensive Installation Guide.

Node Setup

For every command, replace [chain_id] with the appropriate chain ID for the network you're interacting with. You can also specify custom home directories using the --home flag:

galacticad [command] --chain-id [chain_id] --home [home_directory]

Configure Node Client RPC

Set the RPC node URL for the client to connect to.

galacticad config node [rpc_node_url]

Initialize Node

Initialize a new node home directory with a moniker and chain ID. This command creates a new node configuration in the specified home directory.

galacticad init [moniker] --chain-id [chain_id]

Start Node

Start your node to begin syncing with the network.

Show Node Info

Display information about node status, including the latest block height and other details. This command queries the node set by galacticad config node [rpc_node_url].

Keys Management

Create a New key

After entering the command, you need to input the passphrase for the keys. You might need to re-enter the passphrase.

Example output:

Import mnemonic

If you already have a mnemonic phrase, you can import it using the following command:

Export a Key

Export your key to a file for backup.

Import a Key

Import a key from a file.

Delete a Key

Show Gala Address

Displays the Gala address associated with your key. The -a flag shows the address only. It has a prefix gala.

Show ETH Address

Converts your Gala address to an Ethereum-compatible address. It is useful for interacting with Ethereum-based DAPPs or wallets. It is in hex format (with the 0x prefix).

Export Ethereum Private Key in Hex Format

Exports your Ethereum private key for use in other wallets or applications. You could import this key into a wallet like MetaMask or Keplr.

Check Account Balance

Displays the current balance of your account.

Validator Management

Get Validator Address

Validator address is required for staking and other validator-specific operations. It has prefix galavaloper.

Get Consensus Address

Consensus address is the address used for consensus operations. It has prefix galacons.

Get Validator Public Key

Validator public key is used for signing blocks and other validator operations. It is in bech32 format.

Get Consensus Public Key

Consensus public key is used for consensus operations. It is in bech32 format.

Sharing your Peer ID

Your node's Peer ID is required for P2P communication. You can share it with other validators to establish connections.

  • Peer Format: node_id@ip:port

  • Example: c722e6dc5f762b0ef19be7f8cc8fd67cdf988946@seed01-reticulum.galactica.com:26656

Staking and Rewards

Get address delegations

Delegate Tokens

Delegate tokens to a validator. Replace [amount_agnet] with the amount of tokens you wish to delegate.

Unbond Tokens

Unbond tokens from a validator.

Redelegate Tokens

Redelegate tokens from one validator to another. First argument is the source validator, and the second argument is the destination validator address.

Withdraw Rewards

Withdraw staking rewards, including commission if you're a validator.

Validator Unjailing

Unjail Validator

Unjail your validator if it has been jailed for downtime.

Jail reason

Governance

Get list of proposals

Get proposal details

Vote on a proposal

Submit a proposal

Validators

Get list of validators

Get validator info

Transactions

Get Transaction Info by Hash

For more advanced commands and network-specific details, refer to the galacticad help command:

This cheat sheet covers basic commands needed to interact with the Galactica Network via the galacticad CLI.

Last updated

Was this helpful?