Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add API method to get (balance) information for a single channel #5984

Open
C-Otto opened this issue Nov 15, 2021 · 4 comments
Labels
feature request Requests for new features P3 might get fixed, nice to have rpc Related to the RPC interface

Comments

@C-Otto
Copy link
Contributor

C-Otto commented Nov 15, 2021

Background

As far as I know, only the listchannels (https://api.lightning.community/#listchannels) method returns information about the channels' local/remote balance or its active/inactive status. I'd like to have this information just for a single channel.

Similar to #5932.

Your environment

lnd 0.14.0-beta-rc3
Linux server 5.10.0-8-amd64 #​1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
bitcoind v22

@Roasbeef Roasbeef added feature request Requests for new features P3 might get fixed, nice to have rpc Related to the RPC interface labels Nov 15, 2021
@C-Otto
Copy link
Contributor Author

C-Otto commented Nov 15, 2021

Maybe it helps to extend https://api.lightning.community/#getchaninfo to add more information for local channels?

@xraid
Copy link

xraid commented Nov 22, 2021

lncli listchannels | grep -A 5 <channels remote pub_key>

@xraid
Copy link

xraid commented Nov 22, 2021

as is now You need parse it out in code as You are using code ? with bbolt ...

i assume You have 240 channels so that is still manageable in load for transport and cpu(parse)

with etcd or PS YMMW

@C-Otto
Copy link
Contributor Author

C-Otto commented Jan 9, 2024

I'd like to also include the issue described in #6582. In addition to balance information, there's no easy way to see whether a channel is active/inactive. The information provided by getchaninfo gives information about a channel being enabled/disaled, which is not the same as active/inactive.

@C-Otto C-Otto changed the title Feature Request: Add API method to get balance information for a single channel Feature Request: Add API method to get (balance) information for a single channel Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new features P3 might get fixed, nice to have rpc Related to the RPC interface
Projects
None yet
Development

No branches or pull requests

3 participants