Expand description
What a relay says of itself (NIP-11): its name, a few words about it, which NIPs it supports, and whom it takes.
A relay answers at its own address, over https where it is reached
over wss, to whoever asks for application/nostr+json instead of a
page. What it says is its own word, and is shown as that.
Structs§
- Limits
- Whom a relay says it takes: what it asks of whoever connects, or writes. What it doesn’t say it asks, it is taken not to.
- Relay
Info - What a relay says of itself.
Constants§
- DESCRIPTION_
MAX_ 🔒CHARS - DOCUMENT_
MAX_ 🔒BYTES - The most a relay’s account of itself may weigh.
- NAME_
MAX_ 🔒CHARS - How many characters of a relay’s name, and of what it says about itself, are kept.
Functions§
- document_
url - Where
relaysays what it is: its own address, as a page is asked for. Only for a relay reached with encryption: the other kind is on this machine or this network, and is not asked over the web. - fetch
- What
relaysays of itself, if it says: asked overhttps. - parse
- What the document
jsonsays of the relay that sent it.Noneif it is no such document.