跳至主要内容
此页面是从英文翻译而来的。请注意,与原始页面相比,可能会出现错误或差异。真实的文档来源应始终是英文版本。

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