2023-01-24 08:23:00 -05:00
NIP-21
======
2023-05-01 14:15:06 -04:00
`nostr:` URI scheme
2023-01-24 08:23:00 -05:00
-------------------
2023-11-15 19:42:51 -05:00
`draft` `optional`
2023-01-24 08:23:00 -05:00
2023-05-01 14:15:06 -04:00
This NIP standardizes the usage of a common URI scheme for maximum interoperability and openness in the network.
2023-01-24 08:23:00 -05:00
The scheme is `nostr:` .
2024-07-28 15:36:31 -04:00
The identifiers that come after are expected to be the same as those defined in [NIP-19 ](19.md ) (except `nsec` ).
2023-01-24 08:23:00 -05:00
## Examples
- `nostr:npub1sn0wdenkukak0d9dfczzeacvhkrgz92ak56egt7vdgzn8pv2wfqqhrjdv9`
- `nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlyr9p`
- `nostr:note1fntxtkcy9pjwucqwa9mddn7v03wwwsu9j330jj350nvhpky2tuaspk6nqc`
- `nostr:nevent1qqstna2yrezu5wghjvswqqculvvwxsrcvu7uc0f78gan4xqhvz49d9spr3mhxue69uhkummnw3ez6un9d3shjtn4de6x2argwghx6egpr4mhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5nxnepm`
2024-10-15 12:34:17 -04:00
# Typed Schemes
Nostr apps SHOULD register for the specific event types they support, enabling operating systems to suggest only applications that can handle those event types and allowing the OS to have a different default application for each type.
2024-10-15 15:12:42 -04:00
The typed scheme is `nostr+<event type number>:` followed by a `note` , `nevent` or an `naddr` [NIP-19 ](19.md ) identifier.
2024-10-15 12:34:17 -04:00
## Examples
2024-10-15 15:12:42 -04:00
- `nostr+1:note1fntxtkcy9pjwucqwa9mddn7v03wwwsu9j330jj350nvhpky2tuaspk6nqc`
- `nostr+1:nevent1qqstna2yrezu5wghjvswqqculvvwxsrcvu7uc0f78gan4xqhvz49d9spr3mhxue69uhkummnw3ez6un9d3shjtn4de6x2argwghx6egpr4mhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5nxnepm`