3
Option to display balance as connection budget.
D
DenSep 13, 2024
It could be useful to have the option to return the remaining budget balance to a NWC connected app rather than the full node balance.
For example if I set a XXXXX sat per month spending balance for a mobile wallet it may be more useful to me for the wallet to display my current remaining balance to spend than it is for it to show me the full balance of my hub.
Comments
As a podcast app developer, the listeners need to see how much is left in their budget in the app, not how much is left in their balance. This allows them to quickly see when they are reaching the limits of their budget within the app they are currently using.
dev.thebells1111 Alby Hub has implemented the NWC get_budget function and is available in the JS SDK if you'd like to try it. See the NIP-47 PR here: https://github.com/nostr-protocol/nips/pull/1504
There's a solution proposed at the NIP-47 spec level for this now: https://github.com/nostr-protocol/nips/pull/1504
This allows apps to get budget separate from the balance.
It seems like this has been added. If you've set Full balance type, you'll see what you've already spent. If you've set anything else custom or with limits, you'll see the remaining balance, which makes sense...
getalby-self-hosted.pkxtw I do not seem to be able to see what you are talking about. In connected apps I always see the full balance unless it is an isolated connection. If there is a way to see only the budget remaining in an app then I do not see it.
Den I'm sorry it's not the connection type that changes it, it's the BUDGET selection. If you create a new connection, then leave the budget untouched, you'll see the connection screen show you the "Spent" instead of "Balance". I hope that helps.
Bitcrazy On the connection screen in the hub I see balance. What I was hoping to see was the remaining budget from within a connected app. For example if I have AlbyGo mobile wallet connected to my hub with a budget of 20K sats per month then I would like to see "20,000"" as the balance/budget in the mobile app rather than the full hub balance. That way I know how much I have available left to spend.
Den I clearly see what you meant now. This is a good ask, I think the workaround for now would be to use the isolated wallet connection instead and send the amount for your budget there for you to spend. That's exactly what I'm doing now, but I see how useful your feature request is.