console
The console
command starts the node and also a console session. Like the start
command, it will attempt to connect the node to the network.
The console provides a JavaScript environment for executing custom scripts that allow developers and users to perform operations not natively supported by Kit.
The JavaScript context is loaded with modules that allow you to build complex scripts. See the console section to learn about the available modules.
Usage
Options
Node
--node.address
- The address the node will bind and listen to for incoming connections.--node.addpeer
- Provide a comma-separated list of node addresses to connect to.--node.exts
- Specify an extension to run when the node starts.--node.extsargs
- Provide arguments for extensions.--node.validator
- Run the node in validator mode. This will prevent your node from taking part in host operations.
Remote
--remote.address
- The address where the remote server will listen for git requests.
RPC
--rpc.on
- Starts the RPC server on the default address. By default, the server is not started.--remote.address
- The address where the RPC server will listen for incoming JSON-RPC 2.0 requests.--rpc.authpubmethod
- Force the RPC server to require authorization check for calls targeting public RPC methods.--rpc.disableauth
- Prevents the RPC server from performing authorization checks of incoming requests.--rpc.user
- The RPC user to use for basic authorization.--rpc.password
- The RPC password to use for basic authorization.--rpc.tmaddress
- The address where the Tendermint RPC server listens for incoming RPC requests coming from Kit.
DHT
--dht.on
- Starts the DHT server. It will connect to the DHT seed nodes embedded into the client.--dht.address
- Set the address where the DHT will bind to and listen for incoming connections.--dht.addpeer
- Provide a comma-separated list of DHT node address to connect to.
Example
Last updated