ITC Command
The itc command starts an interactive JavaScript environment that connects to the Intelchain Blockchain node. This interactive shell allows you to run JavaScript commands and interact with the blockchain in real-time.
Commmand Syntax
./itc command [flags]
Displays help information for the command
-h
--help
mainnet
Specifies the network to connect to (e.g., mainnet, testnet). Default: --net string
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
Start the interactive JavaScript environment
Launch the interactive shell to run JavaScript commands and interact with the blockchain :
./itc command
Specify a different network
Connect to a different network, such as the testnet :
./itc command --net testnet
Use a Ledger hardware wallet
Start the command with the Ledger hardware wallet for secure transactions :
./itc command --ledger
Connect to a custom node
Connect to a specific Intelchain node :
./itc command -n http://remote-node:9500