ITC Blockchain known-chain
The itc blockchain known-chains
command lists the chain IDs that are known and supported by the Intelchain Blockchain. This is useful for developers and operators to identify available chain configurations.
Commmand Syntax
./itc blockchain known-chains [flags]
Displays help information for the command
-h
--help
Options Inherited from Parent Commands
- '--file string' -> Specifies a file path for input when the command requires it
-e
,--ledger
→ Enables the use of a Ledger hardware wallet for transaction signing.--no-latest
→ Prevents appending "latest" to RPC parameters, useful for specific blockchain states.--no-pretty
→ Disables pretty-print formatting for JSON outputs, making them compact and machine-readable.-n
,--node string
→ Specifies the host node for blockchain communication. Default:http://localhost:9500
-r
,--rpc-prefix string
→ Sets the RPC prefix for commands interacting with the blockchain. Default:itc
-v
,--verbose
→ Outputs detailed debug information, equivalent to setting theITC_ALL_DEBUG=true
environment variable.
Usage Examples
List known chain IDs
Run this command to print out all the supported chain IDs :
./itc blockchain known-chains
Use a custom node to fetch chain IDs
Connect to a remote node to retrieve chain information :
./itc blockchain known-chains -n http://remote-node:9500
Use a Ledger hardware wallet
Run the command securely using a Ledger hardware wallet :
./itc blockchain known-chains --ledger
Compact JSON output
Disable pretty-print for JSON responses to make them more compact :
./itc blockchain known-chains --no-pretty