flashbots-tx

command module
v0.0.0-...-79bba6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 14 Imported by: 0

README

Flashbots (failed) transactions

Iterate over Ethereum blocks to get (failed) Flashbots transactions.

Notes:

  • You can set the geth node URI as environment variable ETH_NODE, or pass it in as -eth argument.
  • You should use an IPC connection to the geth node, as there are a lot of API calls (one for each tx).
# Subscribe to new blocks and find failed Flashbots tx:
go run . -watch

# Historic, using a starting block
go run . -block 12539827           # 1 block
go run . -block 12539827 -len 5    # 5 blocks
go run . -block 12539827 -len 10m  # all blocks within 10 minutes of given block
go run . -block 12539827 -len 1h   # all blocks within 1 hour of given block
go run . -block 12539827 -len 1d   # all blocks within 1 day of given block

# Historic, using a starting date
go run . -date -1d -len 1h         # all blocks within 1 hour of yesterday 00:00:00 (UTC)
go run . -date 2021-05-25 -len 1h  # all blocks within 1 hour of given date 00:00:00 (UTC)
go run . -date 2021-05-25 -hour 12 -min 5 -len 1h  # all blocks within 1 hour of given date 12:05:00 (UTC)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL