Overview
This guide provides instructions on how to connect to specifc EOSIO blockchain when using cleos
. Cleos
can connect to a specific node by using the --url
optional argument, followed by the http address and port number.
The examples use the --url
optional argument to send commands to the specified blockchain.
Before you Begin
Make sure you meet the following requirements:
-
Install the currently supported version of
cleos
. - You have access to an EOSIO blockchain and the http afddress and port number of a
nodeos
instance.
Reference
See the following reference guides for command line usage and related options:
- cleos command
Example
- Add the
-url
option to specify thenodeos
instance
cleos -url http://nodeos-host:8888 COMMAND
Where
-url http://nodeos-host:8888
= The http address and port number of thenodeos
instance to connect to- COMMAND = The
cleos
command.
Summary
In conclusion, by following these instructions you are able to connect to a specified nodeos
instance.