Elldin console mode is simple. You only need to use the
consolecommand instead of the
elld console -a "0.0.0.0:9000"
Elldprovides the ability to start a console that attaches to a remote node. Using
attachcommand instead of
consolestarts the console in attach mode.
In attach mode, only the console and a RPC client is enabled. You can call most functions that are available in the un-attached mode.
The command above will attach to the local
Elldinstance running on the default RPC address
--rpcaddressto specify a different address.
The console environment includes in-built, helper methods for interacting with the client, blockchain state and the network. These methods are categorized into namespaces according to their functions and similarities.
RPC namespaces provides access to services offered by the RPC server. They are not available in the console until the RPC server starts to run. These are the namespaces:
By default, RPC namespaces will not be accessible in the console when the RPC server is not turned on. To turn on the RPC server within the console, call the
Which should produce the log output below:
> INFO RPC service started Address="127.0.0.1:8999"