Why Nostr? What is Njump?
2023-08-07 17:43:12

Vitor Pamplona on Nostr: Who wants to see your lightning wallet's balance directly on Amethyst? I am torn on ...

Who wants to see your lightning wallet's balance directly on Amethyst? I am torn on this.

Is it a privacy risk? Does it even make sense or should we use the UI space/coding time for something else? Since this is an RPC, when should we call the NWC server to get the updated value? Every second? Once a day? After each zap? Since you can spend your sats outside Amethyst, it will most likely be an out of sync value nevertheless.


Alby NWC now supports the "get_balance" RPC. WIP for a long time we decided on the same principle from pay_invoice, just a normal RPC, _not_ a replaceable event. The spec is here: https://github.com/getAlby/nips/blob/master/47.md#get_balance . Current connections do not have permission for this request, so everyone that would want to use it would need to create a new one. The permission is not enabled by default, but if you link people to the Alby page, you can check the permission checkbox default by specifying the request_methods in the url query parameters, as described here: https://github.com/getAlby/nostr-wallet-connect/#query-parameter-options-for-new
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z