pmrcunha on Nostr: It is a way for two relays to know which events one has and the other doesn’t, so ...
It is a way for two relays to know which events one has and the other doesn’t, so that you can sync them.
You can use a local relay / cache and keep it in sync with your actual relays easily. And it’s super fast!
If using JS, take a look at @welshman/net for a good implementation.
Published at
2025-02-22 06:37:15Event JSON
{
"id": "8203353d2e22e27f3538a72ac6bfdbe4dea40dda4a75f78cc478c726b4d748a7",
"pubkey": "b299876ba85e33da57269247f7f91aee025f5bd2bc229aa85c7908f37c10c838",
"created_at": 1740206235,
"kind": 1,
"tags": [
[
"e",
"db13eda86cff9270c756c5fe42ff0f917c653e3b6447bd0eda9f2bb26d722e72",
"",
"root"
],
[
"e",
"2797a75b74e4d43f37ee307d8a3bfb265064d65a69606228965d234ac45838f2",
"",
"reply"
],
[
"p",
"be7358c4fe50148cccafc02ea205d80145e253889aa3958daafa8637047c840e"
]
],
"content": "It is a way for two relays to know which events one has and the other doesn’t, so that you can sync them.\n\nYou can use a local relay / cache and keep it in sync with your actual relays easily. And it’s super fast!\n\nIf using JS, take a look at @welshman/net for a good implementation.",
"sig": "7308829d36215c0fc354ce15fdb9dd76fd0a02b23f16b696f2e20db4dd60326aa149f9269d6d1019cb92d92304bed700b49568d6f062e2e6ba5fb47cbf6bee29"
}