pull down to refresh

ok it does both now -- if you query it, it responds the same as it did before now, but it also creates or replaces the replaceable "info" event on startup

@ek let me know if it works for you now

For those seeking the spec on how to do the replaceable info event, the spec is here:

https://github.com/nostr-protocol/nips/blob/master/47.md

Search for "The info event should be a replaceable event..."

Works now, thank you!

Maybe we should also support both (as a replaceable event and as a command) if docs.nwc.dev lists it only as a command.

reply

no problem :D

thank you for reporting the issue!

reply

Oh, I just realized that get_info as a command is indeed part of the spec. It's the last command.

I didn't realize that. So it's indeed also part of the official spec!

reply

We might exclusively use get_info then.

reply

it certainly makes the implementation simpler -- I didn't even realize there was supposed to be a get_info replaceable event because I don't think it's mentioned on nwc.dev

**EDIT: okay I found it, they do mention it: https://docs.nwc.dev/bitcoin-lightning-wallets/getting-started

reply