nips/37.md
2024-11-18 13:07:29 +00:00

926 B

NIP-37 - Transport methods announcement

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):

["<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

{
  "kind": 11111,
  "tags": [
    ["clearnet", "some.domain.com", "wss"],
    ["tor", "somehash.onion", "ws"],
    ["i2p", "somehash.b32.i2p/", "ws"],
    ["ipv4", "157.240.212.35", "http"],
    ["ipv6", "2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF", "http"]
  ]
}