scan
InvokeScan multiple DEXs for profitable arbitrage routes
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"token_in": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"token_out": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"amount_in": {
"type": "number",
"exclusiveMinimum": 0
},
"chains": {
"default": [
"ethereum",
"base",
"bsc"
],
"minItems": 1,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"token_in",
"token_out",
"amount_in",
"chains"
],
"additionalProperties": false
}
Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"best_route": {
"type": "string"
},
"alt_routes": {
"type": "array",
"items": {
"type": "string"
}
},
"net_spread_bps": {
"type": "number"
},
"est_fill_cost": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"best_route",
"alt_routes",
"net_spread_bps",
"est_fill_cost",
"timestamp"
],
"additionalProperties": false
}
Invoke with curl
curl -s -X POST \
'https://crossdex-arbitrage-alert.vercel.app/entrypoints/scan/invoke' \
-H 'Content-Type: application/json' \
-d '
{
"input": {
"token_in": "string",
"token_out": "string",
"amount_in": 0,
"chains": [
"string"
]
}
}
'