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
- 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
| Campo | Tipo | Qué lleva |
|---|---|---|
nonce | string | 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 | When the nonce lapses: ten minutes after it was made. |
esquema
noncestring obligatorio — The nonce: put it in the login event'snoncetag. The same value is in thebtci_logincookie set with it, and it works once.expires_atstring (date-time) obligatorio — When the nonce lapses: ten minutes after it was made.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 429 | quota_exceeded | quota_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. |
| 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
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.