Useful CLI commands
General
Set the default chain for migalood to use:
Mainnet chain ID: migaloo-1
Testnet chain ID: narwhal-1
Set the default RPC for migalood to use:
Queries
Get native/IBC token balances:
Query contract:
The query needs to be a JSON object, e.g. {"balance": {"address": "migalood1..."}}
Get contract state:
Get contract metadata:
Transactions
Upload a wasm binary on chain:
Uploading a wasm binary will return a code_id, which you can use to instantiate the contract in a subsequent step.
Instantiate a contract:
The instantiate_msg needs to be a JSON object, e.g. {"owner": "migalood1..."}
Execute a command on a wasm contract:
Send native/IBC tokens:
Keys
See keys on the current box:
Add a key:
The mnemonic of your key will be displayed on screen only once. Write it down and keep it safe.
Import a key from a mnemonic:
Delete a key:
Staking
Create validator:
Delegate tokens:
Governance
Query gov proposal:
Vote on gov proposal:
Vote options are: yes
, abstain
, no
, no_with_veto
Validators and Nodes
Check the status of your node:
Get your node ID:
Check if your node is catching up:
Your peer address will be the result of this plus host and port, i.e. @:26656 if you are using the default port.
Get your valoper address:
Last updated