MEV Labs

MEV Protect API

Submit transactions from your own backend.

A server-to-server path for platforms that send transactions from their own backend. Submit signed transactions directly and track each one through to inclusion.

What you get

Submit

Straight from your backend

Post a signed transaction and the chain it is for. It is executed exactly as signed.

Attribution

Per-partner keys

Every transaction is tagged with the key it came in with. Separate keys tell you where your orderflow comes from.

Status

A status for every transaction

Ask for a transaction by its hash to see what happened to it, through to inclusion.

Protection

The same as the RPC

Both ways in lead to the same private mempool: the same protection and the same rebates.

Two transports

HTTPS

One request per transaction

Post a signed transaction, then read it back by its hash. Send your key as a bearer token on every request.

WebSocket

One connection

The same API over one connection.

Statuses

What happened to each transaction.

A transaction starts as pending. Once it is in a block it becomes protected, reverted, or, when we backran it and the rebate is paid, rebated. On chains with revert protection, when it is on, one that would revert is dropped instead. A status does not change after that.

Pending
Received, waiting to be included in a block.
Protected
Included privately. There was nothing to backrun.
Rebated
Included privately, backrun by us, and the rebate is paid.
Reverted
Included privately, and the transaction itself reverted.
Dropped
It would have reverted, so revert protection kept it out of the block. No gas was paid.

How to integrate

  1. 01

    Create a key

    In the dashboard, open API keys and create one. Name it after where it will run. The key is shown in full once, so store it when it appears.

  2. 02

    Set where rebates are paid

    In Settings, give the address rebates are paid to on each chain you use. A rebate is an on-chain payment to that address.

  3. 03

    Authenticate

    Send your key as a bearer token on every request. Keep it on your server; it must not ship in a client.

  4. 04

    Submit a transaction

    Post the signed transaction and the chain it is for, over HTTPS or on the WebSocket.

  5. 05

    Check it

    The transaction appears in the dashboard under Transactions, with its status, its block, and, when it was backrun, the hash of the backrun and of the rebate payment.

Questions

Send your orderflow through MEV Protect.

MEV Protect is in development and there is no launch date yet. Partner applications open at launch.