Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ForkCmd = &cobra.Command{ Use: "fork 0x053d84d5215684c8ae810a4729f7c9b54d65a80b128a27aeddcd7dc295a0cebd https://polygon-rpc.com", Short: "Take a forked block and walk up the chain to do analysis", Long: ` TODO `, RunE: func(cmd *cobra.Command, args []string) error { log.Info().Str("rpc", rpcURL).Str("blockHash", blockHash.String()).Msg("Starting Analysis") c, err := ethclient.Dial(rpcURL) if err != nil { log.Error().Err(err).Str("rpc", rpcURL).Msg("Could not rpc dial connection") return err } return walkTheBlocks(blockHash, c) }, Args: func(cmd *cobra.Command, args []string) error { if len(args) != 2 { return fmt.Errorf("two arguments required a block hash and an RPC URL") } blockHash = ethcommon.HexToHash(args[0]) rpcURL = args[1] return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.