OFA Dashboard Stats

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:

FieldTypeDescription
txs_submittedintTotal transactions received by the proxy.
txs_protectedintTransactions that passed sandwich detection and were routed privately.
sandwiches_blockedintNumber of sandwich attacks detected and prevented.
mev_captured_weistringTotal MEV value captured through backrun auctions (in wei).
rebates_paid_weistringTotal rebates distributed to users (in wei).
originator_countintUnique 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:

MetricTypeDescription
uptime_pctfloatSystem uptime percentage over the measurement window.
error_rate_pctfloatPercentage of requests that returned an error.
latency_p50_msintMedian response latency in milliseconds.
latency_p95_msint95th percentile response latency in milliseconds.
latency_p99_msint99th percentile response latency in milliseconds.
windowstringTime window over which metrics are computed.
measured_atstringISO 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}'
Edit this page