Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 2.04 KB

File metadata and controls

66 lines (50 loc) · 2.04 KB

polycli p2p ping

Auto-generated documentation.

Table of Contents

Description

Ping node(s) and return the output.

polycli p2p ping [enode/enr or nodes file] [flags]

Usage

Pinging a peer is useful to determine information about the peer and retrieving the Hello and Status messages. By default, it will listen to the peer after the status exchange for blocks and transactions. To disable this behavior, set the --listen flag.

Example

polycli p2p ping <enode/enr or nodes.json file>

Flags

  -a, --addr ip           address to bind discovery listener (default 127.0.0.1)
  -h, --help              help for ping
      --key string        hex-encoded private key (cannot be set with --key-file)
  -k, --key-file string   private key file (cannot be set with --key)
  -l, --listen            keep connection open and listen to peer. This only works if first
                          argument is an enode/enr, not a nodes file (default true)
  -o, --output string     write ping results to output file (default stdout)
  -p, --parallel int      how many parallel pings to attempt (default 16)
  -P, --port int          port for discovery protocol (default 30303)
  -w, --wit               enable wit/1 capability

The command also inherits flags from parent commands.

      --config string      config file (default is $HOME/.polygon-cli.yaml)
      --pretty-logs        output logs in pretty format instead of JSON (default true)
  -v, --verbosity string   log level (string or int):
                             0   - silent
                             100 - panic
                             200 - fatal
                             300 - error
                             400 - warn
                             500 - info (default)
                             600 - debug
                             700 - trace (default "info")

See also