Auto-generated documentation.
Query block header(s) from node and prints the output.
polycli p2p query [enode/enr] [flags]
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.
-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)
- polycli p2p - Set of commands related to devp2p.