Setup mev-bor
Step 1: Set up mev-bor in the validator node.
wget http://public.artifacts.marlin.pro/projects/mev-bor/v0.4.0/bor-linux_amd64 -O /path/to/local/bor
tip
Prebuilt binaries for other versions can be downloaded by replacing the version tag in the URL above. A list of releases is available here.
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
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.