# 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

- **Straight from your backend** (Submit): Post a signed transaction and the chain it is for. It is executed exactly as signed.
- **Per-partner keys** (Attribution): Every transaction is tagged with the key it came in with. Separate keys tell you where your orderflow comes from.
- **A status for every transaction** (Status): Ask for a transaction by its hash to see what happened to it, through to inclusion.
- **The same as the RPC** (Protection): Both ways in lead to the same private mempool: the same protection and the same rebates.

## Two transports

- **One request per transaction** (HTTPS): Post a signed transaction, then read it back by its hash. Send your key as a bearer token on every request.
- **One connection** (WebSocket): 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. **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. **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. **Authenticate**: Send your key as a bearer token on every request. Keep it on your server; it must not ship in a client.
4. **Submit a transaction**: Post the signed transaction and the chain it is for, over HTTPS or on the WebSocket.
5. **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

### When should we use the API instead of the RPC?

When transactions are sent from your own backend. The API is a server-to-server path: you submit signed transactions directly. A wallet that sends from the user's device uses the RPC.

### Can we follow a transaction after we send it?

Yes. The API gives a status for every transaction you send, and you can track each one through to inclusion in a block.

### Is the protection different from the RPC?

No. The API gives the same protection and the same rebates as the RPC.

### Can we keep transactions that would revert out of a block?

Yes, on chains with revert protection. Turn it on for the key in the dashboard: a transaction that would revert is then not included, and no gas is paid for it. It is off until you turn it on. The Revert protection page lists the chains that have it.

## Send your orderflow through MEV Protect.

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

- [Integrate MEV Protect](https://www.mevlabs.xyz/apply.md)
- [API documentation](https://www.mevlabs.xyz/docs/api.md)

---

Page: https://www.mevlabs.xyz/products/api · [All pages](https://www.mevlabs.xyz/llms.txt)
