Add eth_sendPrivateTransaction support (closes #40)#62
Conversation
MEV-Share private transaction submission on flashbots.Relay: single transaction with hint preferences (calldata, contract_address, logs, function_selector), builder selection, fast mode, and an optional max inclusion block. Auth uses the existing X-Flashbots-Signature path. The result parser handles the bare tx-hash string result shape, unlike bundle responses which wrap an object.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds MEV-Share's ChangesMEV-Share Private Transaction Submission
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Comment |
What
Implements MEV-Share's
eth_sendPrivateTransactiononflashbots.Relayper #40: submit a single private transaction with configurable searcher hints.SendPrivateTxOpts: raw signed tx, optionalmax_block_number(omitted = relay default of current+25), optionalTxPreferences(fast mode, calldata/contract_address/logs/function_selector hint flags, builder list)preferences.fast+preferences.privacy.{hints,builders}; the privacy object is omitted when no hints/builders are setparseTxHashResultfor the bare-string result shape (bundle methods return an object)X-Flashbots-Signatureauthenticated request pathTests
Param-builder tests (minimal, full preferences, fast-only) with exact-JSON assertions, and result-parser tests (success, RPC error, null result). Pass on 0.16.0 and 0.17.0-dev.
Sets up
MevShareClient.sendTransactionfor #34.Closes #40
🤖 Generated with Claude Code
Summary by CodeRabbit