The OFA proxy exposes two endpoints for monitoring system performance: aggregate stats and SLA metrics.
Stats Endpoint
GET /v1/ofa/stats
Also available via WebSocket gateway as yq_getStats.
Returns aggregate statistics for the OFA proxy.
Response:
{
"txs_submitted": 148302,
"txs_protected": 142891,
"sandwiches_blocked": 3214,
"mev_captured_wei": "89500000000000000000",
"rebates_paid_wei": "80550000000000000000",
"originator_count": 12847
}
Fields:
| Field | Type | Description |
|---|---|---|
txs_submitted | int | Total transactions received by the proxy. |
txs_protected | int | Transactions that passed sandwich detection and were routed privately. |
sandwiches_blocked | int | Number of sandwich attacks detected and prevented. |
mev_captured_wei | string | Total MEV value captured through backrun auctions (in wei). |
rebates_paid_wei | string | Total rebates distributed to users (in wei). |
originator_count | int | Unique wallet addresses that have submitted transactions. |
SLA Endpoint
GET /v1/ofa/sla
Returns service-level agreement metrics for the OFA proxy.
Response:
{
"uptime_pct": 99.97,
"error_rate_pct": 0.12,
"latency_p50_ms": 18,
"latency_p95_ms": 45,
"latency_p99_ms": 120,
"window": "24h",
"measured_at": "2026-03-15T14:00:00Z"
}
Metrics:
| Metric | Type | Description |
|---|---|---|
uptime_pct | float | System uptime percentage over the measurement window. |
error_rate_pct | float | Percentage of requests that returned an error. |
latency_p50_ms | int | Median response latency in milliseconds. |
latency_p95_ms | int | 95th percentile response latency in milliseconds. |
latency_p99_ms | int | 99th percentile response latency in milliseconds. |
window | string | Time window over which metrics are computed. |
measured_at | string | ISO 8601 timestamp of the measurement. |
Code Examples
Fetch aggregate stats
curl https://rpc.yoorquezt.com/v1/ofa/stats \
-H "Authorization: Bearer $API_KEY"
Fetch SLA metrics
curl https://rpc.yoorquezt.com/v1/ofa/sla \
-H "Authorization: Bearer $API_KEY"
Extract specific metrics with jq
# Get protection rate
curl -s https://rpc.yoorquezt.com/v1/ofa/stats \
-H "Authorization: Bearer $API_KEY" \
| jq '{
protection_rate: ((.txs_protected / .txs_submitted) * 100 | round),
sandwiches_blocked: .sandwiches_blocked,
total_mev_eth: (.mev_captured_wei | tonumber / 1e18)
}'
# Monitor latency
curl -s https://rpc.yoorquezt.com/v1/ofa/sla \
-H "Authorization: Bearer $API_KEY" \
| jq '{p50: .latency_p50_ms, p95: .latency_p95_ms, p99: .latency_p99_ms, uptime: .uptime_pct}'