2022-07-19 09:34:39 +02:00
lightning-bkpr-listbalances -- Command for listing current channel + wallet balances
===============================================================================
SYNOPSIS
--------
**bkpr-listbalances**
DESCRIPTION
-----------
2024-02-02 05:50:25 +01:00
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.
2022-07-19 09:34:39 +02:00
2024-02-02 05:50:25 +01:00
Note that any channel that was recorded will be listed. Closed channel balances will be 0msat.
2022-07-19 09:34:39 +02:00
RETURN VALUE
------------
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object containing **accounts** is returned. It is an array of objects, where each object contains:
2022-09-05 23:45:04 +02:00
2022-11-11 03:03:13 +01:00
- **account** (string): The account name. If the account is a channel, the channel\_id
2022-07-19 09:34:39 +02:00
- **balances** (array of objects):
2022-09-05 23:45:06 +02:00
- **balance\_msat** (msat): Current account balance
- **coin\_type** (string): coin type, same as HRP for bech32
2022-07-19 09:34:39 +02:00
2022-09-05 23:45:06 +02:00
If **peer\_id** is present:
2022-09-05 23:45:04 +02:00
2022-09-05 23:45:06 +02:00
- **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
2022-07-19 09:34:39 +02:00
[comment]: # (GENERATE-FROM-SCHEMA-END)
AUTHOR
------
niftynei < niftynei @ gmail . com > is mainly responsible.
SEE ALSO
--------
lightning-bkpr-listincome(7), lightning-listfunds(7),
lightning-bkpr-listaccountevents(7),
lightning-bkpr-channelsapy(7), lightning-listpeers(7).
RESOURCES
---------
Main web site: < https: / / github . com / ElementsProject / lightning >
2024-01-25 01:28:53 +01:00
[comment]: # ( SHA256STAMP:93c258c5a9352584515769c2db1f000ca8b565fea2eeb7a9c262a2edc58ed091)