Core MEV setup

Step 1: Set up mev-bor in the validator node.

wget http://public.artifacts.marlin.pro/projects/mev-bor/2.0.4/bor-linux_amd64 -O /path/to/local/bor

Step 2: Expose the relevant RPC methods from mev-bor by adding the below cli flags.

--http  # Enable http rpc
--http.addr "0.0.0.0"  # Expose the RPC endpoint outside the instance so the gateway can access it
					   # IMPORTANT: Protect the RPC endpoint from external access using a firewall
                       # Especially if you are exposing the `eth` namespace, be sure to set up the firewall _prior_
                       # Only the gateway IP provided by us should have access to it
--http.api "mev"  # The RPC APIs used by the gateway live in the `mev` namespace, expose them
				  # Can expose other RPCs as per your requirement
--miner.recommit "700ms"  # Reduce the recommit time so blocks with bundles can be generated

Restart the bor service so all the above changes take effect.

Step 3: Contact us to set up a dedicated gateway for you.

Step 4: Add the gateway IP provided by us to your firewall to allow RPC requests from it.

That's it!

Contact us if you would like a hands-on guided walkthrough.


Revision #5
Created Wed, Mar 23, 2022 4:19 AM by Roshan
Updated Thu, May 12, 2022 3:46 PM by Roshan