nips icon indicating copy to clipboard operation
nips copied to clipboard

[NWC] Add get_budget command for per-connection budget limits.

Open jklein24 opened this issue 1 year ago • 2 comments

This separates the notion of budget from get_balance so that permissions can be more appropriately controlled by the wallet. Budgets can be configured by users like how Alby supports, and client apps can query their remaining budget and when it will renew next.

Breaking out a separate command for this purpose means that a user can let a client app see their own remaining budget without giving the app access to see their entire wallet balance.

jklein24 avatar Sep 18 '24 03:09 jklein24

Looks good to me. But we have no implementations yet, right?

I have added an issue to Alby Hub to implement this.

Thanks! We have it implemented internally, but hoping to get that live in the next couple of weeks. If there's no one to grab that ticket in alby hub and it's just in a public repo, I might be open to grabbing that ticket myself too :-)

jklein24 avatar Sep 25 '24 04:09 jklein24

Looks good to me. But we have no implementations yet, right? I have added an issue to Alby Hub to implement this.

Thanks! We have it implemented internally, but hoping to get that live in the next couple of weeks. If there's no one to grab that ticket in alby hub and it's just in a public repo, I might be open to grabbing that ticket myself too :-)

FYI @rolznz alby hub implementation is here: https://github.com/getAlby/hub/pull/726

jklein24 avatar Oct 07 '24 04:10 jklein24