This commit is contained in:
Arjen 2025-08-12 22:26:35 +00:00 committed by GitHub
commit 38f11d71d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 35 additions and 0 deletions

35
137.md Normal file
View File

@ -0,0 +1,35 @@
NIP-137
======
Transport methods announcement
-----------------------------------
`draft` `optional`
This NIP describes how digital services can announce how clients can reach them, it describes which network is used and depending on the network what other data is needed to reach it.
## Specification
A replacable event of kind `11111`, containing one or more of the following tag(s):
```json
["<network>", "<address>", "<protocol>"]
```
- `<network>` describes which network is used.
- `<address>` describes where to address the service.
- `<protocol>` describes which protocol/schema should be used
## Example
```json
{
"kind": 11111,
"tags": [
["clearnet", "some.domain.com", "wss"],
["tor", "somehash.onion", "ws"],
["i2p", "somehash.b32.i2p/", "ws"],
["clearnet", "157.240.212.35", "http"],
["clearnet", "2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF", "http"]
]
}
```