https://github.com/metachris/flashbots
Flashbots utilities in Go: Blocks & Transactions API, and tools to spot bundle and block irregularities
https://github.com/metachris/flashbots
ethereum flashbots geth-node golang transactions
Last synced: 3 months ago
JSON representation
Flashbots utilities in Go: Blocks & Transactions API, and tools to spot bundle and block irregularities
- Host: GitHub
- URL: https://github.com/metachris/flashbots
- Owner: metachris
- License: mit
- Created: 2021-06-02T12:14:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T12:46:44.000Z (about 4 years ago)
- Last Synced: 2025-06-10T03:06:13.187Z (4 months ago)
- Topics: ethereum, flashbots, geth-node, golang, transactions
- Language: Go
- Homepage:
- Size: 382 KB
- Stars: 41
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utilities for [Flashbots](https://github.com/flashbots/pm)
* Go API client for the [mev-blocks API](https://blocks.flashbots.net/) for information about Flashbots blocks and transactions
* Detect bundle errors: (a) out of order, (b) lower gas fee than lowest non-fb tx
* Detect failed Flashbots and other 0-gas transactions (can run over history or in 'watch' mode, webserver that serves recent detections)
* Various related utilitiesUses:
* https://github.com/ethereum/go-ethereum
* https://github.com/metachris/go-ethutilsRelated:
* https://github.com/metachris/flashbots-rpc (callBundle, etc)
Good starting points:
* `cmd/api-test/main.go`
* `cmd/block-watch/main.go`Reach out: [twitter.com/metachris](https://twitter.com/metachris)
---
## Flashbots Blocks & Transactions API
https://blocks.flashbots.net/
Installation:
```bash
go get github.com/metachris/flashbots/api
```Usage:
```go
// Blocks API: default
block, err := api.GetBlocks(nil)// Blocks API: options
opts := api.GetBlocksOptions{BlockNumber: 12527162}
block, err := api.GetBlocks(&opts)// Transactions API: default
txs, err := GetTransactions(nil)
```