Replying to Avatar Blake

Anyone have a simple getting started using NIP-07 for window.nostr JavaScript web apps?

Literally a basic, check extension exists and is working, log pubkey to console (after consent), then sign a generic hello Nostr kind 1 event and return the signed json object / string.

The websocket stuff isn’t needed. Just the async JavaScript plugin interactions.

Avatar
Mazin 2y ago

Simple enough example in https://nostr.band/index.js I believe.

I sent you a DM when you get a chance, no rush.

Reply to this note

Please Login to reply.

Discussion

Avatar
Blake 2y ago

Thanks will take a look!

Avatar
Kieran 2y ago

Snort NIP7 code is mostly here: https://github.com/v0l/snort/blob/main/packages/app/src/Feed/EventPublisher.ts#L13

Thread collapsed
Thread collapsed