Skip to content

v0.3.0

Choose a tag to compare

@koko1123 koko1123 released this 09 Mar 22:07
· 49 commits to main since this release
757ac11

Flashbots MEV Bundle Submission

Adds full support for submitting MEV bundles via Flashbots-compatible relay APIs.

New: flashbots module

  • Relay client with EIP-191 auth signing (X-Flashbots-Signature header)
  • eth_sendBundle (Flashbots v1) - submit bundles to relays
  • mev_sendBundle (MEV-Share) - submit bundles with privacy/validity options
  • eth_callBundle - simulate bundles against specific blocks
  • eth_cancelBundle - cancel bundles by replacement UUID
  • Bundle convenience builder for collecting signed transactions

API

const eth = @import("eth");

var relay = eth.flashbots.Relay.init(allocator, "https://relay.flashbots.net", auth_key);
defer relay.deinit();

const result = try relay.sendBundle(.{
    .transactions = bundle.transactions(),
    .block_number = current_block + 1,
});

Closes #13

Full Changelog: v0.2.3...v0.3.0