Skip to main content
Given a user transaction description, returns ready-to-use backrun calldata that the partner composes into the user transaction so the swap and backrun execute atomically in one on-chain transaction. nexroute does not dispatch the transaction in this mode; the partner (or the user’s wallet) submits it. Returns result: null when no profitable arbitrage is found, in which case the partner proceeds without a backrun.
Privacy is the dispatcher’s responsibility. If mempool exposure is a concern, the dispatching path must use a private relay.

Request

POST to your embedded endpoint with a JSON-RPC 2.0 envelope.

Params

params is a single-element array containing the user transaction description.

Example

Response

A JSON-RPC envelope echoing the request id. result is a BackrunResult object when a profitable backrun is found, or null when none.

BackrunResult

Examples

Backrun found
No profitable backrun

Errors