The caller's watchlist
GET /v1/watch- quién puede llamarla
- Una clave o una sesión
- nivel t2 o superior · la sesión de una clave Nostr
- cuán reciente
- Nunca en caché
- cada respuesta lleva la altura del índice y la del nodo
En esta página
The subjects a key (t2, t4) or a signed-in npub follows, with since_seq — the change-feed cursor at the time each was added — and last_seq, the feed's current head. Pull only: no webhooks.
Parámetros
No toma parámetros.
Qué responde
The list.
| Campo | Tipo | Qué lleva |
|---|---|---|
items | array | The subjects watched, the first added first, at most 1,000. |
items[].subject | object | The subject watched. |
items[].added_at | string | When it was added. |
items[].since_seq | integer | The feed cursor when the subject was added. |
count | integer | How many subjects the list holds. |
max | integer | The most subjects the tier lets the list hold. |
last_seq | integer | The change feed's head now: its newest seq. |
esquema Watchlist
itemsarray de object obligatorio — The subjects watched, the first added first, at most 1,000.subjectSubject obligatorio — The subject watched.kindstring — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
added_atstring (date-time) obligatorio — When it was added.since_seqinteger obligatorio — The feed cursor when the subject was added.
countinteger obligatorio — How many subjects the list holds.maxinteger obligatorio — The most subjects the tier lets the list hold.last_seqinteger obligatorio — The change feed's head now: its newestseq.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 401 | unauthorized | unauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
| 422 | nip98_invalid | The NIP-98 event was refused (nip98_invalid): wrong URL or method, stale, bad signature, wrong payload hash, or used before; the message names the reason. |
| 501 | not_configured | not_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it. |
Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.
Ejemplo
curl y jq, en cualquier shell.
curl -s https://api.btcintel.io/v1/watch \
-H "Authorization: Bearer $BTCINTEL_KEY" | jq '{count, max, last_seq}'This route needs a key. Set BTCINTEL_KEY in your environment first: the snippet reads it from there and holds no key. The description above names the tiers the route takes.