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": "<rpc>",
"network": "<network>",
"arweave_wallet_path": "<path>"
}
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:
$ joystiq init chain-config
If you want to use a different file name or path, you can specify it using the --config
or -cf
flag.
$ joystiq --config /path/to/your/config.json <command>