btcintel

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.
qué cuesta
1 petición de la cuota
niveles y claves
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

NombreDóndeTipoObligatorioQué hace
pathconsultastringobligatorioThe public path, /claims/<claim id or slug>, with or without a sub-path or a query after it.

Qué responde

What the path names.

CampoTipoQué lleva
kindstringWhat the path names: an event, a member (an annotation that names a campaign), or another claim.
claim_idstringThe canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>.
currentbooleanTrue 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.
slugstringAn event's current slug; absent until the backfill reaches the event.
retractedbooleanAn event: whether it is retracted.
subjectobjectA member's subject. Only for a member.
rolestringA member's role in its campaign.
statusstringA member's state.
campaignobjectA member's campaign.
pageobjectWhere 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
  • kind string obligatorio — What the path names: an event, a member (an annotation that names a campaign), or another claim. · uno de "event", "member", "claim"
  • claim_id string obligatorio — The canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>.
  • current boolean 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.
  • slug string — An event's current slug; absent until the backfill reaches the event.
  • retracted boolean — An event: whether it is retracted.
  • subject Subject — A member's subject. Only for a member.
    • kind string — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
    • key string — Canonical key.
  • role string — A member's role in its campaign. · uno de "victim", "sweep", "vault", "cash_out"
  • status string — A member's state. · uno de "current", "provisional", "held", "rejected"
  • campaign object — A member's campaign.
    • claim_id string obligatorio — The campaign's claim id, evt_<n>.
    • slug string — The campaign's slug. Absent while it has none.
    • title string — The campaign's title. Absent when it has none.
  • 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.
    • index integer obligatorio — The member's place in that list, from 0: how many members come before it.
    • cursor string | null obligatorio — The cursor of the page that holds the member. Null on the first page.

Errores

EstadoCódigoCuándo
400invalid_inputMalformed input (invalid_input).
404not_foundnot_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}'