api.relai.fi
Detects and analyzes MEV activity—sandwich attacks, front-running and toxic flows—across major chains using AI-powered analysis.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"error": "X-PAYMENT header is required",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xc9368b30BD620164FD1a05a5d99dcaf8Ae754775",
"amount": "600000",
"scheme": "exact",
"network": "eip155:8453",
"mimeType": "application/json",
"resource": "https://emc2ai.io/x402/bitquery/mevdetection",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)",
"discoverable": true,
"outputSchema": {
"input": {
"type": "http",
"method": "POST",
"bodyType": "json",
"bodyFields": {
"chain": {
"enum": [
"base",
"ethereum",
"bsc",
"arbitrum",
"polygon",
"optimism",
"solana"
],
"type": "string",
"description": "Blockchain to query (e.g., base, ethereum, bsc, solana)"
},
"limit": {
"type": "string",
"description": "Maximum number of results to return (default: 10, max: 500)"
},
"timeperiod": {
"enum": [
"1h",
"4h",
"24h",
"7d",
"30d"
],
"type": "string",
"description": "Time period for analysis (e.g., 1h, 24h, 7d, 30d)"
}
},
"discoverable": true
},
"output": {
"result": {
"type": "object",
"description": "Query result data"
},
"status": {
"type": "string",
"description": "Request status (completed or error)"
},
"payment": {
"type": "object",
"description": "Payment receipt information"
},
"analysis": {
"type": "object",
"description": "AI-powered analysis and insights"
}
}
},
"maxAmountRequired": "600000",
"maxTimeoutSeconds": 90
},
{
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"extra": {
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain": "solana"
},
"payTo": "3H8oRdbRf18b2aaMVBfgJVDhnjhiXjCVTP5ZnNmPuikb",
"amount": "600000",
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"mimeType": "application/json",
"resource": "https://emc2ai.io/x402/bitquery/mevdetection",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)",
"maxAmountRequired": "600000",
"maxTimeoutSeconds": 60
},
{
"asset": "sat",
"extra": {
"chain": "lightning",
"merchantId": "520ca7be-8ffe-4b50-ba8a-c1d8d6c2141a",
"usdEquivalent": "0.60"
},
"payTo": "520ca7be-8ffe-4b50-ba8a-c1d8d6c2141a",
"amount": "793",
"scheme": "exact",
"network": "lightning:mainnet",
"mimeType": "application/json",
"resource": "https://emc2ai.io/x402/bitquery/mevdetection",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)",
"maxAmountRequired": "793",
"maxTimeoutSeconds": 30
}
],
"resource": {
"url": "https://emc2ai.io/x402/bitquery/mevdetection",
"mimeType": "application/json",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)"
},
"extensions": {
"bazaar": {
"schema": {
"properties": {
"input": {
"properties": {
"body": {
"type": "object",
"properties": "[Circular Reference]"
}
}
},
"output": {
"properties": {
"example": {
"result": {},
"status": "completed",
"analysis": {}
}
}
}
}
}
}
},
"x402Version": 2
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 1.15 USDC on Base to 0xc936…54775. The signed payment is good for 1.5 minutes.
- Paid to
- 0xc936…54775
- USD Coin contract
- 0x8335…02913
- Payment window
- 1.5 minutes
- As published
- 1150000 smallest units
- Buys
- Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)
- Returns
- application/json
That figure is in the token’s smallest units. Roundhouse does not hold this contract’s decimals, so it is shown as published rather than converted.
- Paid to
- 3H8oRd…Puikb
- Token contract
- EPjFWd…TDt1v
- Payment window
- 1 minute
- Buys
- Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)
- Returns
- application/json
That figure is in the token’s smallest units. Roundhouse does not hold this contract’s decimals, so it is shown as published rather than converted.
- Paid to
- 520ca7…2141a
- Token contract
- sat
- Payment window
- 30 seconds
- Buys
- Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)
- Returns
- application/json
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xc9368b30BD620164FD1a05a5d99dcaf8Ae754775",
"scheme": "exact",
"network": "base",
"mimeType": "application/json",
"resource": "https://emc2ai.io/x402/bitquery/mevdetection",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)",
"discoverable": true,
"outputSchema": {
"input": {
"type": "http",
"method": "POST",
"bodyType": "json",
"bodyFields": {
"chain": {
"enum": [
"base",
"ethereum",
"bsc",
"arbitrum",
"polygon",
"optimism",
"solana"
],
"type": "string",
"description": "Blockchain to query (e.g., base, ethereum, bsc, solana)"
},
"limit": {
"type": "string",
"description": "Maximum number of results to return (default: 10, max: 500)"
},
"timeperiod": {
"enum": [
"1h",
"4h",
"24h",
"7d",
"30d"
],
"type": "string",
"description": "Time period for analysis (e.g., 1h, 24h, 7d, 30d)"
}
},
"discoverable": true
},
"output": {
"result": {
"type": "object",
"description": "Query result data"
},
"status": {
"type": "string",
"description": "Request status (completed or error)"
},
"payment": {
"type": "object",
"description": "Payment receipt information"
},
"analysis": {
"type": "object",
"description": "AI-powered analysis and insights"
}
}
},
"maxAmountRequired": "1150000",
"maxTimeoutSeconds": 90
},
{
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"extra": {
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain": "solana"
},
"payTo": "3H8oRdbRf18b2aaMVBfgJVDhnjhiXjCVTP5ZnNmPuikb",
"scheme": "exact",
"network": "solana",
"mimeType": "application/json",
"resource": "https://emc2ai.io/x402/bitquery/mevdetection",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)",
"maxAmountRequired": "1150000",
"maxTimeoutSeconds": 60
},
{
"asset": "sat",
"extra": {
"chain": "lightning",
"merchantId": "520ca7be-8ffe-4b50-ba8a-c1d8d6c2141a",
"usdEquivalent": "1.15"
},
"payTo": "520ca7be-8ffe-4b50-ba8a-c1d8d6c2141a",
"scheme": "exact",
"network": "lightning:mainnet",
"mimeType": "application/json",
"resource": "https://emc2ai.io/x402/bitquery/mevdetection",
"description": "Detect MEV activity: sandwich attacks, front-running, toxic flow analysis. (with AI analysis)",
"maxAmountRequired": "1462",
"maxTimeoutSeconds": 30
}
]Provenance
- Seen in the source catalog
- 2026-09-19 08:32Z
- Last indexed by Roundhouse
- 2026-09-20 12:45Z
- Last enriched (probe, favicon, geo)
- 2026-09-16 21:15Z
- x402 version
- 2
- Max timeout
- 90s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service api.relai.fi and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=api.relai.fi' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://api.relai.fi/relay/1769629274857/x402/bitquery/mevdetection, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402, or use an organization key from https://roundhouseai.io/dashboard/team. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.