Chain
Manage chains and configs
Manage chains and configs
Command | Description |
---|---|
Displays the config of the chain.
Key | Description |
---|---|
The above command will generate an output similar to:
Creates a copy of a current config.
When you copy a config, the wallets from the copied config are also copied to the new one.
Gets the value for the specified key. The keys are the ones found above when we call chain config (chainId, chainUrl, ect...)
If the <key> is not specified, then the entire config will be fetched.
Lists all the saved configs.
The chain currently is use is highlighted in green.
Creates a new config.
You will be prompted to enter the required config fields. We can then query the configs:
Removes a config by name or chain ID.
You can only remove configs that have been added and not default configs.
Swaps to one of the saved configs.
You can get all the configs from the CLI by running chain config.
Displays current chain config.
Creates a copy of a current config.
Displays current value for a given key.
Lists all the currently saved configs.
Creates a new config.
Removes a config by name or chain Id.
Swap to a saved config.
addressPrefix
The prefix for all addresses on chain
blockExplorerTxPages
URLs to block explorers for the given chain. Must include '${txHash}'
blockExplorerAddressPages
URLs to block explorers for the given chain. Must include '${txHash}'
chainId
The Id of the chain to use
chainUrl
The URL of the chain to use
chainName
The name of the chain.
chainType
The type of chain (Testnet or Mainnet).
defualtFee
The default fee amount
iconUrls
The icon for the chain.
kernelAddress
The contract address of the Kernel of the chain.
name
The name of the config being used.
enabled
Whether the config is enabled in the CLI.