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)