Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 1.84 KB

polycli_ecrecover.md

File metadata and controls

70 lines (51 loc) · 1.84 KB

polycli ecrecover

Auto-generated documentation.

Table of Contents

Description

Recovers and returns the public key of the signature

polycli ecrecover [flags]

Usage

Recover public key from block

polycli ecrecover -r https://polygon-mumbai-bor.publicnode.com -b 45200775
> Recovering signer from block #45200775
> 0x5082F249cDb2f2c1eE035E4f423c46EA2daB3ab1

polycli ecrecover -r https://polygon-rpc.com
> Recovering signer from block #52888893
> 0xeEDBa2484aAF940f37cd3CD21a5D7C4A7DAfbfC0

polycli ecrecover -f block-52888893.json
> Recovering signer from block #52888893
> 0xeEDBa2484aAF940f37cd3CD21a5D7C4A7DAfbfC0

cat block-52888893.json | go run main.go ecrecover
> Recovering signer from block #52888893
> 0xeEDBa2484aAF940f37cd3CD21a5D7C4A7DAfbfC0

JSON Data passed in follows object definition here

Flags

  -b, --block-number uint   Block number to check the extra data for (default: latest)
  -f, --file string         Path to a file containing block information in JSON format
  -h, --help                help for ecrecover
  -r, --rpc-url string      The RPC endpoint url

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

  • polycli - A Swiss Army knife of blockchain tools.