Links
🤫

Migration guide for the coming improvement for MEV Bundles

Migration Guide: Transition from blxr_mev_searcher to blxr_submit_bundle
As part of our commitment to improve and streamline our services, we are deprecating the blxr_mev_searcher and will only retain the blxr_submit_bundle method. This guide will walk you through the necessary steps to make the change. Please also make sure you have updated your gateway to the latest version.
1. Update the JSON-RPC Method:
Change the method from "method": "blxr_mev_searcher" to "method": "blxr_submit_bundle" in your JSON-RPC request.
2. Update the Parameters:
Update the existing parameters and structure from the blxr_mev_searcher JSON-RPC request:
"params": {
"mev_method": "eth_sendBundle",
"mev_builders": {
"bloxroute": "",
"flashbots": "<signature>"
},
"payload": [{
"txs" : ["0xf8708344c...818765aaa"],
"blockNumber" : "0xb73dcd",
"minTimestamp": 0,
"maxTimestamp": 0
}]
}
with that of blxr_submit_bundle:
"params": {
"transaction": ["ab..ab", "cd..cd"],
"block_number": "0xba10d0",
"min_timestamp": 1616511391,
"max_timestamp": 1617806320,
"reverting_hashes": ["0xd8..ce", "0x50..d3"],
"frontrunning": false,
"mev_builders": {
"bloxroute": "",
"flashbots": "<signature>",
"all": ""
}
}
Please ensure that you update the parameter values according to your specific requirements.
3. Verify the Updated JSON-RPC Request:
After making the necessary changes, your updated request should resemble the following:
wscat -c ws://127.0.0.1:28333/ws --header "Authorization: <YOUR-AUTHORIZATION-HEADER>" --no-check
{
"jsonrpc": "2.0",
"id": "1",
"method": "blxr_submit_bundle",
"params": {
"transaction": ["ab..ab", "cd..cd"],
"block_number": "0xba10d0",
"min_timestamp": 1616511391,
"max_timestamp": 1617806320,
"reverting_hashes": ["0xd8..ce", "0x50..d3"],
"frontrunning": false,
"mev_builders": {
"bloxroute": "",
"flashbots": "<signature>",
"all": ""
}
}
}
After completing these steps, you should have successfully migrated from using the blxr_mev_searcher method to the blxr_submit_bundle method. If you encounter any issues or have questions during this transition, please don't hesitate to reach out to our support team.