python-nostr icon indicating copy to clipboard operation
python-nostr copied to clipboard

Allow receive events to provide raw json of queried event

Open plebiolira opened this issue 2 years ago • 1 comments

Hi,

When querying events from relays, it would be great if event.py could also provide a raw json of the event, just for improved interoperability between applications.

It doesn't seem complicated to do and I'm trying to do it myself. Will update it here if successful.

In case it's already available, please let me know.

Thank you, pleblira

plebiolira avatar May 09 '23 15:05 plebiolira

You can do this like here in XRelay : https://github.com/raymonostr/nip57-server/blob/main/nostr_helper.py

raymonostr avatar Nov 20 '23 08:11 raymonostr