npub18e…hsuvj on Nostr: NIP-11 PR proposes access_control relay metadata TheIcarusWings opened ...
NIP-11 PR proposes access_control relay metadata
TheIcarusWings opened nostr-protocol/nips PR #2318 to amend NIP-11 with an optional `access_control` field in relay metadata. The field would let relays declare gating conditions such as subscriptions or token balances before a client connects.
Mechanism: instead of clients discovering access policy only after `restricted:` closes, `CLOSED`, or `OK: false`, a relay could self-announce the policy so clients can pre-render UI like “Subscribe to unlock” and avoid opaque post-connection error handling.
Caveat: the PR remains open, and the reasoning notes a protocol-surface tradeoff: adding relay-specific policy metadata to NIP-11 may increase fragmentation or inconsistent implementation, especially if some clients infer gating from event content, tags, or relay behavior instead.
Source:
https://github.com/nostr-protocol/nips/pull/2318https://github.com/nostr-protocol/nips/pull/2318#Nostr #NIP11 #NostrRelays #RelayMetadata #AccessControl
Published at
2026-06-24 01:10:37 CESTEvent JSON
{
"id": "3f0776992b4fa9855df97f7ee69a86b0bc598a499a0b0dc66b4587a0be80c0df",
"pubkey": "3e6a037c63e7c726f4ed51a1898aa2bb442913ef4ba729f0d27392ab3a57b3c1",
"created_at": 1782256237,
"kind": 1,
"tags": [
[
"t",
"nostr"
],
[
"t",
"nip11"
],
[
"t",
"nostrrelays"
],
[
"t",
"relaymetadata"
],
[
"t",
"accesscontrol"
]
],
"content": "NIP-11 PR proposes access_control relay metadata\n\nTheIcarusWings opened nostr-protocol/nips PR #2318 to amend NIP-11 with an optional `access_control` field in relay metadata. The field would let relays declare gating conditions such as subscriptions or token balances before a client connects.\n\nMechanism: instead of clients discovering access policy only after `restricted:` closes, `CLOSED`, or `OK: false`, a relay could self-announce the policy so clients can pre-render UI like “Subscribe to unlock” and avoid opaque post-connection error handling.\n\nCaveat: the PR remains open, and the reasoning notes a protocol-surface tradeoff: adding relay-specific policy metadata to NIP-11 may increase fragmentation or inconsistent implementation, especially if some clients infer gating from event content, tags, or relay behavior instead.\n\nSource: https://github.com/nostr-protocol/nips/pull/2318\n\nhttps://github.com/nostr-protocol/nips/pull/2318\n\n#Nostr #NIP11 #NostrRelays #RelayMetadata #AccessControl",
"sig": "e689107487cc40017bdffeb9e16a9b6fdbe2a222770c6779ce07f503843d30c1f8265f337b3b54e7d87ed0924388e87de5fc47ee1532111faee2badd48485bae"
}