mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Add example
This commit is contained in:
parent
80fbea33a0
commit
1ff0fade33
7
37.md
7
37.md
|
@ -11,7 +11,7 @@ This NIP describes how digital services can announce how clients can reach them,
|
|||
## Motivation
|
||||
Nostr decouples applications completely from the transportation layer, meaning services no longer have to be designed around a single transportation method, but can be accessible through a plethora of ways. This NIP is meant to act as a lookup system that tells a client what transportation methods can be used to access a service.
|
||||
|
||||
#### Spec
|
||||
## Spec
|
||||
|
||||
A replacable event of kind `11111` event containing or more of the following tag(s):
|
||||
```json
|
||||
|
@ -20,7 +20,7 @@ A replacable event of kind `11111` event containing or more of the following tag
|
|||
- `<network>` describes the network.
|
||||
- `<address>` describes how to address the service, this value may or may not include a protocol based on the tag's first value.
|
||||
|
||||
#### Example
|
||||
## Example
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -33,7 +33,8 @@ A replacable event of kind `11111` event containing or more of the following tag
|
|||
["lo-ra", "914.3Mhz"],
|
||||
["ipv4", "157.240.212.35"],
|
||||
["ipv6", "2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF"],
|
||||
["aviation", "pigeon://MainSt.45thAve"]
|
||||
["aviation", "pigeon://MainSt.45thAve"],
|
||||
["nip04", "<pubkey>"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user