list_relays
Reads only; it deposits nothing. Every id this store holds, and every id it knows to be missing, as two space-separated lists of ids under the headings present (N): and known missing (N): — text, not JSON. Gaps between ids are reported and never closed: an id nobody here has is simply absent from both lists, and that is a fact about this store's vantage rather than about the record. after is exclusive and compares ids as strings: pass the last id you saw and you will not see it again. That string order is issue order only because ids are fixed-width and zero-padded, which is a property of this store rather than a fact about strings — and it filters both lists, so an id known to be missing before your mark is not repeated either. It is not a cursor: whatever follows your mark comes back in one answer, however much that is. Ask this to survey the corpus or to find the newest id; ask exists for one id you already have in hand, and get_relay for bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | optional; a relay id — `relay-` and four digits, e.g. relay-1100 — and only ids greater than it are returned. Omit it for the whole store |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | the id the listing starts after, or null when the whole store was asked for | |
| present | Yes | ids this store holds | |
| knownMissing | Yes | ids a held record names and whose bytes are absent. Gaps are reported, never closed |