I had this posted a while ago

was using nostr_sdk 0.32 at that time

but feels like the code is not working anymore with 0.39 (latest nostr_sdk version)

https://alashazam.wordpress.com/2024/07/07/python-nostr_sdk-fetching-all-metadata/

Reply to this note

Please Login to reply.

Discussion

crashes with error:

AttributeError: type object 'PublicKey' has no attribute 'from_bech32'. Did you mean: 'to_bech32'?

Yeah it should be to_bech32. Here is an example code from their GitHub https://github.com/rust-nostr/nostr/blob/master/bindings/nostr-sdk-ffi/python/examples/metadata.py

good find, but that program is a bit too old as well, (it is only one month old) ... but it crashes with this error :

nostr:nevent1qgs2xyfsr74phxjwj6tqrp8wgshhp3ktkuuqgnkfvwk59lexge3l3usqyqzy3slfqlxr3u5sncrqm5lc2kx5x6lf7jhgr3wvxnv2cr8s7z6l2vsdn6n