Skip to main content
POST
/
backrun
Error
A valid request URL is required to generate request examples
{
  "target": "0x...",
  "callData": "0x..."
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexroute.io/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
from
string
required

Sender of the user's swap transaction. Used to simulate from the correct address since aggregators typically pull input via transferFrom(msg.sender, ...).

Pattern: ^0x[0-9a-fA-F]{40}$
target
string
required

Target contract of the user's swap (typically an aggregator router or diamond).

Pattern: ^0x[0-9a-fA-F]{40}$
callData
string
required

Calldata of the user's swap transaction.

Pattern: ^0x[0-9a-fA-F]+$

Response

Backrun calldata for the swap, or null fields when no arbitrage opportunity is found.

target
string | null
required

Contract that must be called atomically after the swap. Null when no arbitrage opportunity is found.

Pattern: ^0x[0-9a-fA-F]{40}$
callData
string | null
required

Calldata to send to target. Equivalent to the backrunData parameter on the wrapper contract. Null when no arbitrage opportunity is found.

Pattern: ^0x[0-9a-fA-F]*$