how to connect a specific network
Goal
Connect to a specific nodeos
or keosd
host to send COMMAND
cleos
and keosd
can connect to a specific node by using the --url
or --wallet-url
optional arguments, respectively, followed by the http address and port number these services are listening to.
[[info | Default address:port]]
| If no optional arguments are used (i.e. --url
or --wallet-url
), cleos
attempts to connect to a local nodeos
or keosd
running at localhost 127.0.0.1
and default port 8888
.
Before you begin
- Install the currently supported version of
cleos
Steps
Connecting to Nodeos
cleos -url http://nodeos-host:8888 COMMAND
Connecting to Keosd
cleos --wallet-url http://keosd-host:8888 COMMAND