Flashbots Save

Flashbots utilities in Go: Blocks & Transactions API, and tools to spot bundle and block irregularities

Project README

Utilities for Flashbots

  • Go API client for the mev-blocks API 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 utilities

Uses:

Related:

Good starting points:

  • cmd/api-test/main.go
  • cmd/block-watch/main.go

Reach out: twitter.com/metachris


Flashbots Blocks & Transactions API

https://blocks.flashbots.net/

Installation:

go get github.com/metachris/flashbots/api

Usage:

// 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)
Open Source Agenda is not affiliated with "Flashbots" Project. README Source: metachris/flashbots
Stars
41
Open Issues
0
Last Commit
2 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating