v0.3.0
Flashbots MEV Bundle Submission
Adds full support for submitting MEV bundles via Flashbots-compatible relay APIs.
New: flashbots module
Relayclient with EIP-191 auth signing (X-Flashbots-Signatureheader)eth_sendBundle(Flashbots v1) - submit bundles to relaysmev_sendBundle(MEV-Share) - submit bundles with privacy/validity optionseth_callBundle- simulate bundles against specific blockseth_cancelBundle- cancel bundles by replacement UUIDBundleconvenience 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