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.
jb55 (npub1xts…kk5s) Vitor Pamplona (npub1gcx…nj5z)
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
Published at
2023-08-07 15:43:12Event JSON
{
"id": "54e7f83ee02dd72bac32951d45f4cb893e04d99f6d80da9724f17b8a31475e11",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1691422992,
"kind": 1,
"tags": [
[
"e",
"4ef5e1874135fcfd9c85c61a2e88e1b67e88afddae44ae12c90412bde7dd45cc",
"",
"mention"
],
[
"p",
"8c3b267e9db6b0115498cc3efcd187d1474864940ae8ff977826b9d83d205877",
"",
"mention"
]
],
"content": "Who wants to see your lightning wallet's balance directly on Amethyst? I am torn on this. \n\nIs 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. \n\nnostr:nevent1qqsyaa0psaqntl8anjzuvx3w3rsmvl5g4lw6u39wztysgy4aulw5tnqpremhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet59upzprpmyelfmd4sz92f3np7lngc0528fpjfgzhgl7thsf4emq7jqkrhqvzqqqqqqyquj32u",
"sig": "50dc5cf376bd559770623cf1f6a99d16ca2b9be8c7f2ee96c29e21ef98cc85b12901ec2359635f82225a50d0460fb345687d9f5acce14076815267be569dc10a"
}