getAlby / js-sdk

JavaScript SDK for the Alby OAuth2 Wallet API and the Nostr Wallet Connect API.
https://npmjs.com/package/@getalby/sdk
63 stars 16 forks source link

Add `supports` method on nwc client to easily check if it supports a certain NIP-47 capability #221

Open rolznz opened 5 months ago

rolznz commented 5 months ago

It will have to do a request to get_info. And we might have to consider caching so it's not called multiple times? or maybe the NWC client should always do a get_info request when initializing?