show_stats — Group 0, Code 02
Returns operational statistics.
Purpose
show_stats is the live statistics endpoint in Group 0. It is the correct reference for operator-style metrics requests; older pages that described code 02 differently are not authoritative.
When to call it
Use this command for aggregated service and performance insight, not for coin validation.
Request body
After the encrypted challenge, the body carries a 16-byte admin key. The handler compares it against config.admin_key and rejects with ERROR_ADMIN_AUTH on mismatch — this command is privileged.
Request packet diagram
Bytes 32-33 carry the fixed 3E 3E protocol terminator.
Response body
On success the body is a copy of the server’s struct stats_s. The exact byte size depends on the stats struct layout at the responding RAIDA's build; clients should treat the response as opaque metrics data and parse it against the same struct definition the server uses.
Status codes
| Decimal | Hex | Meaning |
|---|---|---|
| 250 | 0xFA | STATUS_SUCCESS |
| 132 | 0x84 | ERROR_EMPTY_REQUEST — body missing |
| 192 | 0xC0 | ERROR_ADMIN_AUTH — admin key did not match |
| 254 | 0xFE | ERROR_MEMORY_ALLOC — server allocation failure |