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.
--addr ip address to bind discovery listener (default 127.0.0.1)
-a, --amount uint amount of blocks to query (default 1)
-h, --help help for query
--key string hex-encoded private key (cannot be set with --key-file)
-k, --key-file string private key file (cannot be set with --key)
-P, --port int port for discovery protocol (default 30303)
-s, --start-block uint block number to start querying fromThe 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")- polycli p2p - Set of commands related to devp2p.