RPC / Gateway Quality Intelligence. Four endpoints answering "how well is Pocket actually serving RPC access to this chain/service right now?" — a per-service quality lens, live from Pocket's own GraphQL indexer, distinct from network-wide protocol stats. POST /v1/rpc-pulse (service_id): current serving snapshot — active suppliers/applications, relay-mining difficulty EMA, trailing-1h settlement volume. POST /v1/rpc-performance (service_id, window_hours): settlement/proof performance over a window — claimed vs. estimated relays, distinct suppliers serving, proof success rate, slash events. POST /v1/rpc-anomaly (service_id): deterministic comparison of a recent window vs. a longer baseline, flagging relay-volume drops, supplier-participation drops, and slash-rate spikes by fixed thresholds. POST /v1/rpc-forecast (service_id, lookback_days, horizon_days): least-squares linear-trend projection over real daily settlement history. service_id is required on every resource (e.g. "eth"); every other field is optional with documented defaults. Every response is a single JSON object.
Service Metadata Cardsource: on-chain metadata (LCD)
{10 items
"schema":"pocket-service-card/v1"
"description":"RPC / Gateway Quality Intelligence. Four endpoints answering "how well is Pocket actually serving RPC access to this chain/service right now?" — a per-service q..."
"rpc_types":[1 item
0:{4 items
"type":"REST"
"intent":"expected"
"backend_hint":"rpc-quality-intel HTTP server on :8080; mount at /"
"notes":"Only POST /v1/rpc-pulse, /v1/rpc-performance, /v1/rpc-anomaly, /v1/rpc-forecast, and GET /v1/version, /v1/health are expected. Every response is a JSON object; ..."
"notes":"Covers all four resources in one document. TODO before MainNet staking: pin this to an immutable commit SHA in the path (not 'main') and add a sha256 of the exa..."
}
]
"access":"public"
"results":"deterministic"
"serving":{7 items
"backend":"The rpc-quality-intel Node.js HTTP server (no external dependencies) behind a RelayMiner, with the REST backend pointed at http://<container>:8080. No auth towa..."
"notes":"Identity probe: pins the backend to this service so a wrong backend cannot be staked under this id."
}
1:{4 items
"rpc_type":"REST"
"request":{2 items
"path":"/v1/health"
"method":"GET"
}
"expect":{2 items
"json_path":"$.status"
"matches":"^ok$"
}
"notes":"Readiness probe."
}
2:{4 items
"rpc_type":"REST"
"request":{3 items
"path":"/v1/rpc-pulse"
"method":"POST"
"body":{1 item
"service_id":"pocket"
}
}
"expect":{2 items
"json_path":"$.active_suppliers"
"matches":"^[0-9]+$"
}
"notes":"Functional probe against Pocket's own 'pocket' service (always registered, so this never depends on a third-party chain being staked). Proves the backend can re..."
}
]
"notes":"Suppliers should disable any local rate limiting for the RelayMiner's address. Request bodies are capped at 1 MiB and responses are ordinarily a few KB. Backend..."