Interacting with Indexchain Chains
Using komodo-cli
Initiate the komodod
daemon by calling it from the command line and including any desired runtime parameters.
When initiating any Smart Chain other than the main DIC chain, the user should always include all parameters that were used to create the Smart Chain.
::: tip Note to Windows Users: Replace ./komodod and ./komodo-cli with komodod.exe and komodo-cli.exe for each step. :::
To launch the main DIC chain, execute the following command in the directory where komodod
is installed.
After the daemon launches, you may interact with it using the komodo-cli
software.
To launch another Smart Chain, include the necessary parameters.
::: tip IMPORTANT Always execute the launch command EXACTLY as indicated, and as the Smart Chain's developers instruct. If you make a mistake, you must delete the Smart Chain data and re-launch to regain access to the Smart Chain's network. :::
For example, to launch the DEX Smart Chain, execute:
To interact with the DEX daemon, use komodo-cli
like so:
In the terminal you can call the Komodo documentation by executing:
To learn more via the terminal about a specific API command, execute:
Using curl
To access a coin daemon remotely -- for example, via a curl
command in the shell -- the user will need to obtain the rpcuser
, rpcpassword
, and rpcport
from the .conf
file of the relevant coin daemon.
Location of .conf File
Assuming the default installation location, the .conf
file can be found by exploring the following directories:
Operating System
Directory
MacOS
~/Library/Application Support/Komodo
Windows
C:\Users\myusername\AppData\Roaming\Komodo\
GNU/Linux
~/.komodo
Within this directory there are also subdirectories containing all DIC-compatible .conf
files used on this node.
Contents of a DIC.conf
file:
Last updated
Was this helpful?