Chain Config
Chain config is a JSON file that contains the private key, rpc endpoints, and network name you want to use. This file is used by the CLI to interact with the blockchain.
chain-config.json
{
"private_key": "<private_key>",
"rpc_wasm": "<cosmwasm_rpc>",
"rpc_evm": "<evm_rpc>",
"network": "<network>"
}
Available networks here.
Defaultly, the CLI will always looking for chain-config.json
file in the current directory. If the file does not exist, you will need to create one.
To create a chain config file you can use the following command:
$ lighthouse init chain-config
If you want to use a different file name or path, you can specify it using the --config
or -cf
flag.
$ lighthouse --config /path/to/your/config.json <command>