Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.34 KB

polycli_p2p_query.md

File metadata and controls

52 lines (38 loc) · 1.34 KB

polycli p2p query

Auto-generated documentation.

Table of Contents

Description

Query block header(s) from node and prints the output.

polycli p2p query [enode/enr] [flags]

Usage

Query header of single block or range of blocks given a single enode/enr.

This command will initially establish a handshake and exchange status message from the peer. Then, it will query the node for block(s) given the start block and the amount of blocks to query and print the results.

Flags

  -a, --amount uint        Amount of blocks to query (default 1)
  -h, --help               help for query
  -s, --start-block uint   Block number to start querying from

The command also inherits flags from parent commands.

      --config string   config file (default is $HOME/.polygon-cli.yaml)
      --pretty-logs     Should logs be in pretty format or JSON (default true)
  -v, --verbosity int   0 - Silent
                        100 Panic
                        200 Fatal
                        300 Error
                        400 Warning
                        500 Info
                        600 Debug
                        700 Trace (default 500)

See also