Anyone know how to get a raw dump of nostr traffic generated by Amethyst? Would be a cool way to learn the protocol. Like: what message is emitted when I update my profile? (I guess I should read the manual huh...)

Reply to this note

Please Login to reply.

Discussion

The nips are pretty easy to read

Start here github.com/nostr-protocol

Relays pick up all events. Here is one by #[2]​ https://github.com/Cameri/nostream

Welcome to the future 🫂

You can use websocat to query a relay for some of your posts, then pipe them to a file for further analysis.

echo ‘[“REQ”,”1”,{“ids”:[“your_hex_pubkey”],”limit”:10}]’ | websocat wss://some.nostr.relay > your-posts.json

https://github.com/vi/websocat

ids is for event ids, I think you meant to write authors instead. And the quotes are not the right ones either 🤪 but yeah it’s getting there

Wooops, yes, the “authors” field is the one to use to filter by author pubkey.

Here’s 80% of what you actually need to know about the protocol https://github.com/nostr-protocol/nips/blob/master/01.md