Add example

This commit is contained in:
ArjenStens 2024-11-07 10:55:23 +00:00
parent 80fbea33a0
commit 1ff0fade33

7
37.md
View File

@ -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>"]
]
}
```