lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
487 stars 82 forks source link

query a specific account for details #592

Closed AndySchroder closed 11 months ago

AndySchroder commented 1 year ago

Is your feature request related to a problem? Please describe.

Efficient administration of lnd accounts.

Describe the solution you'd like Would like RPC calls for getting details about a specific account.

Describe alternatives you've considered We have https://lightning.engineering/api-docs/api/lit/accounts/list-accounts , but that returns a list of all accounts. It also returns all payments for all accounts, so after a lot of accounts and activity on the server, this call is going to likely be very inefficient to use regularly.

We could instead generate a macaroon for the account, then use the macaroon to make calls to LND, but that seems like it is a bit more complex considering https://github.com/lightninglabs/lightning-terminal/issues/582 .