The embedded Nostr relay (WebSocket) and its NIP-11 document
GET /relay- quién puede llamarla
- Cualquiera
- sin clave y sin sesión
- qué cuesta
- No cuenta
- The relay limits itself: per pubkey, per address and per connection. · niveles y claves
- cuán reciente
- Según la petición
- Herramienta MCP
- Ninguna
- cuán reciente, según el caso
- the JSON pointer: a GET with neither
Upgrade: websocketnorAccept: application/nostr+json: nunca en caché - the NIP-11 document (
Accept: application/nostr+json): sin cabecera de caché
En esta página
wss://relay.btcintel.io (Caddy rewrites the relay host to this path; wss://api.btcintel.io/relay is the same relay). A request with Upgrade: websocket opens the NIP-01 connection; Accept: application/nostr+json returns the NIP-11 information document (name, supported NIPs, limitations including the current min_pow_difficulty, posting_policy); any other GET answers a small JSON pointer with the relay URL, the posting policy, whether writes are open and the current proof-of-work floor. The door accepts kinds 1111 (NIP-22 comments), 1985 (NIP-32 labels) and 5 (NIP-09 deletions) that carry a NIP-73 bitcoin: subject and NIP-13 proof of work at or above the floor; it is read-only until the posting policy is signed off. Reads serve only events this relay accepted, with the moderation lens applied. Not counted against tiers: the relay limits per pubkey (30 events / 10 min), per address (60 / 10 min) and per connection.
Parámetros
No toma parámetros.
Qué responde
The JSON pointer (or the NIP-11 document with Accept: application/nostr+json).
| Campo | Tipo | Qué lleva |
|---|---|---|
relay | string | The public wss:// URL. |
nip11 | string | How to read the relay's NIP-11 document: a GET with Accept: application/nostr+json. |
posting_policy | string | The address of the relay's posting policy. |
write_enabled | boolean | Whether the relay takes events now. While false it is read-only. |
min_pow_difficulty | integer | The proof of work an event must reach now, in bits: the relay's floor, raised to 24 while attack mode is on. |
accepted_kinds | array | The kinds the relay takes: 5 (deletions), 1111 (comments) and 1985 (labels). |
esquema
relaystring — The public wss:// URL.nip11string — How to read the relay's NIP-11 document: a GET withAccept: application/nostr+json.posting_policystring (uri) — The address of the relay's posting policy.write_enabledboolean — Whether the relay takes events now. While false it is read-only.min_pow_difficultyinteger — The proof of work an event must reach now, in bits: the relay's floor, raised to 24 while attack mode is on.accepted_kindsarray de integer — The kinds the relay takes: 5 (deletions), 1111 (comments) and 1985 (labels).
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 429 | el contrato no nombra ningún código | Too many new connections from this address in a minute (WebSocket upgrades only). The relay answers with no body: no envelope and no code. |
Ejemplo
curl y jq, en cualquier shell.
curl -s https://api.btcintel.io/relay | jq '{relay, nip11, posting_policy}'La respuesta, leída el 23 nov 2026 a las 14:56 UTC
{
"relay": "wss://relay.btcintel.io",
"nip11": "GET with Accept: application/nostr+json",
"posting_policy": "https://btcintel.io/docs/community"
}Sus cabeceras
Cache-Control: no-store