What a public claim path names, and whether it is the canonical form
GET /v1/resolve- quién puede llamarla
- Cualquiera
- A held or rejected member is an operator's read: anyone else gets 404.
- cuán reciente
- En caché 1 minuto
- y hasta 5 minutos más mientras se vuelve a leer · cada respuesta lleva la altura del índice y la del nodo
- Herramienta MCP
- Ninguna
En esta página
The one lookup behind the web's 301s, so that the web keeps no table of its own. Given a public claim path (/claims/evt_189, /claims/<slug>, /claims/EVT_189/, with or without a sub-path or a query after the reference), it says what the path names. An event answers its id and its current slug; current says whether the reference given is that slug, so an id, a retired slug or another case of it redirect in one hop. A campaign member (an annotation that names a campaign) has no page of its own: it answers its subject, its role and status, its campaign with the campaign's slug, and the page of the campaign's members list that holds it, so the web sends the reader to the address or to the campaign. Any other claim answers its id. A held or rejected member is a 404 except to an operator. A reference of neither shape is a 400; an unknown one a 404.
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
path | consulta | string | obligatorio | The public path, /claims/<claim id or slug>, with or without a sub-path or a query after it. |
Qué responde
What the path names.
| Campo | Tipo | Qué lleva |
|---|---|---|
kind | string | What the path names: an event, a member (an annotation that names a campaign), or another claim. |
claim_id | string | The canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>. |
current | boolean | True when the reference given is the canonical public form: an event's current slug (its id while it has none), another claim's id. Always false for a member. |
slug | string | An event's current slug; absent until the backfill reaches the event. |
retracted | boolean | An event: whether it is retracted. |
subject | object | A member's subject. Only for a member. |
role | string | A member's role in its campaign. |
status | string | A member's state. |
campaign | object | A member's campaign. |
page | object | Where the member sits in its campaign's members list under the filter that shows it (its role; include=provisional when it is provisional), 100 a page: its index and the page's cursor, null on the first page. |
esquema Resolution
kindstring obligatorio — What the path names: anevent, amember(an annotation that names a campaign), or anotherclaim. · uno de "event", "member", "claim"claim_idstring obligatorio — The canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>.currentboolean obligatorio — True when the reference given is the canonical public form: an event's current slug (its id while it has none), another claim's id. Always false for a member.slugstring — An event's current slug; absent until the backfill reaches the event.retractedboolean — An event: whether it is retracted.subjectSubject — A member's subject. Only for a member.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.
rolestring — A member's role in its campaign. · uno de "victim", "sweep", "vault", "cash_out"statusstring — A member's state. · uno de "current", "provisional", "held", "rejected"campaignobject — A member's campaign.claim_idstring obligatorio — The campaign's claim id, evt_<n>.slugstring — The campaign's slug. Absent while it has none.titlestring — The campaign's title. Absent when it has none.
pageobject — Where the member sits in its campaign's members list under the filter that shows it (its role;include=provisionalwhen it is provisional), 100 a page: its index and the page's cursor, null on the first page.indexinteger obligatorio — The member's place in that list, from 0: how many members come before it.cursorstring | null obligatorio — Thecursorof the page that holds the member. Null on the first page.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 404 | not_found | not_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which. |
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/resolve?path=%E2%80%A6' | jq '{kind, claim_id, current}'