btcintel

A nonce that binds the next NIP-98 login to this browser

GET /v1/auth/nonce
quién puede llamarla
Cualquiera
sin clave y sin sesión
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

32 random bytes as URL-safe base64, ten minutes, single use, kept in memory; the same value is set as the cookie btci_login (HttpOnly; Secure; SameSite=Lax; Path=/v1/auth/; Max-Age=600). The login event carries it in a nonce tag, and POST /v1/auth/nip98 accepts the login only when the tag and the cookie agree and the nonce is unspent: an event another page obtained opens nothing. Readable from the explorer's origins only (CORS). Sixty per client address per hour.

Parámetros

No toma parámetros.

Qué responde

The nonce; the cookie is on the response.

Cabeceras: Set-Cookie

CampoTipoQué lleva
noncestringThe nonce: put it in the login event's nonce tag. The same value is in the btci_login cookie set with it, and it works once.
expires_atstringWhen the nonce lapses: ten minutes after it was made.
esquema
  • nonce string obligatorio — The nonce: put it in the login event's nonce tag. The same value is in the btci_login cookie set with it, and it works once.
  • expires_at string (date-time) obligatorio — When the nonce lapses: ten minutes after it was made.

Errores

EstadoCódigoCuándo
429quota_exceededquota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set.
501not_configurednot_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

Sin fragmento. Esta ruta es un paso del inicio de sesión, que ocurre en tu navegador en btcintel.io, así que ningún fragmento puede ejecutarla desde una shell. Ver Identidad.