GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-BKPR-LISTBALANCES(7) LIGHTNING-BKPR-LISTBALANCES(7)

lightning-bkpr-listbalances -- Command for listing current channel + wallet balances

bkpr-listbalances

The bkpr-listbalances RPC command is a list of all current and historical account balances. An account is either the on-chain wallet or a channel balance. Any funds sent to an external account will not be accounted for here.

Note that any channel that was recorded will be listed. Closed channel balances will be 0msat.

On success, an object containing accounts is returned. It is an array of objects, where each object contains:

  • account (string): The account name. If the account is a channel, the channel_id.

  • balances (array of objects):
  • balance_msat (msat): Current account balance.

  • coin_type (string): Coin type, same as HRP for bech32.

If peer_id is present: - peer_id (pubkey): Node id for the peer this account is with. - we_opened (boolean): Did we initiate this account open (open the channel). - account_closed (boolean):

  • account_resolved (boolean): Has this channel been closed and all outputs resolved?

  • resolved_at_block (u32, optional): Blockheight account resolved on chain.

Lisa Neigut <niftynei@gmail.com> is mainly responsible.

lightning-bkpr-listincome(7), lightning-listfunds(7), lightning-bkpr-listaccountevents(7), lightning-bkpr-channelsapy(7), lightning-listpeers(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli bkpr-listbalances

{

"id": "example:bkpr-listbalances#1",
"method": "bkpr-listbalances",
"params": {} }

Response:

{

"accounts": [
{
"account": "wallet",
"balances": [
{
"balance_msat": 202050000000,
"coin_type": "bcrt"
}
]
},
{
"account": "channelid0230000230000230000230000230000230000230000230000230000",
"peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202",
"we_opened": false,
"account_closed": true,
"account_resolved": true,
"resolved_at_block": 121,
"balances": [
{
"balance_msat": 0,
"coin_type": "bcrt"
}
]
},
{
"account": "channelid0340000340000340000340000340000340000340000340000340000",
"peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404",
"we_opened": true,
"account_closed": true,
"account_resolved": false,
"balances": [
{
"balance_msat": 0,
"coin_type": "bcrt"
}
]
},
{
"account": "channelid0230200230200230200230200230200230200230200230200230200",
"peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202",
"we_opened": false,
"account_closed": false,
"account_resolved": false,
"balances": [
{
"balance_msat": 0,
"coin_type": "bcrt"
}
]
},
{
"account": "channelid0340200340200340200340200340200340200340200340200340200",
"peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404",
"we_opened": true,
"account_closed": false,
"account_resolved": false,
"balances": [
{
"balance_msat": 1000000000,
"coin_type": "bcrt"
}
]
}
] }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.