Auto-generated documentation.
Tail full blocks from a JSON-RPC endpoint as NDJSON.
polycli tail [flags]Tail full blocks from an RPC endpoint and emit each block as newline-delimited JSON.
By default this prints the latest 10 blocks and exits:
polycli tail --rpc-url http://127.0.0.1:8545Tail the last 100 blocks and keep following new blocks:
polycli tail -n 100 --follow --rpc-url http://127.0.0.1:8545 -b, --batch-size uint batch size for block requests (default 150)
-n, --blocks-back uint number of latest blocks to output before following (default 10)
--follow poll for and stream newly produced blocks
-h, --help help for tail
--poll-interval duration poll interval when --follow is enabled (default 2s)
-r, --rpc-url string the RPC endpoint URL (default "http://localhost:8545")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")- polycli - A Swiss Army knife of blockchain tools.