LIGHTNING-BKPR-LISTINCOME(7)
π LIGHTNING-BKPR-LISTINCOME(7) π
ok so this is the lightning-bkpr-listincome page from section 7 of the manual, and bestie, it's literally the receipts page for your node. it's giving "show me the money" energy. let's get into it π
β¨ NAME β¨
bkpr-listincome β the command that lists, like, every income-impacting event. that's it, that's the vibe π
π¦ SYNOPSIS π¦
bkpr-listincome [consolidate_fees] [start_time] [end_time]
three optional lil args, all cozy in a row. slay.
πΈ DESCRIPTION πΈ
bkpr-listincome is the RPC command that hands you a full list of every income-impacting event the bookkeeper plugin has recorded for this node. every single one. no cap. it's your node's whole money diary and it's honestly iconic π
here's the params, and yes they're all optional:
consolidate_fees(boolean, optional) β iftrue, we emit a single, consolidated event for any onchain-fees for a txid and account. otherwise, events for every update to the onchain fee calculation for this account and txid will be printed. β οΈ heads up though: this means the events emitted are non-stable, i.e. callinglistincometwice may result in different onchain fee events being emitted, depending on how much information we've logged for that transaction. so like, don't be weirded out if it changes on you. the default isTrue.start_time(u32, optional) β a UNIX timestamp (in seconds) that filters events after the provided timestamp. the default is zero.end_time(u32, optional) β a UNIX timestamp (in seconds) that filters events up to and at the provided timestamp. the default is max-int. yes, that's the big one π«Ά
ngl the fee-consolidation instability is the one thing to remember here β stable output is not guaranteed when consolidate_fees is on, fr fr.
β RETURN VALUE β
on success, you get back an object containing income_events. it's an array of objects, and each object inside contains:
account(string) β the account name. if the account is a channel, it's thechannel_id.tag(string) β type of income event.credit_msat(msat) β amount earned (income). π€debit_msat(msat) β amount spent (expenses). πcurrency(string) β human-readable bech32 part for this coin type.timestamp(u32) β timestamp this event was recorded by the node. for consolidated events such asonchain_fees, it's the most recent timestamp.description(string, optional) β more information about this event. if it's an invoice type, typically thebolt11/bolt12description.outpoint(string, optional) β thetxid:outnumfor this event, if applicable.txid(txid, optional) β the txid of the transaction that created this event, if applicable.payment_id(hex, optional) β Lightning payment identifier. for an htlc, this will be the preimage.
π§ AUTHOR π§
Lisa Neigut niftynei@gmail.com is mainly responsible. thank you lisa, we appreciate you π
π SEE ALSO π
lightning-bkpr-listaccountevents(7), lightning-listfunds(7), lightning-bkpr-listbalances(7)
go read those next, iykyk π¦
π₯ RESOURCES π₯
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1
Request:
$ lightning-cli bkpr-listincome -k "consolidate_fees"=False
{
"id": "example:bkpr-listincome#1",
"method": "bkpr-listincome",
"params": {
"consolidate_fees": false
}
}
Response:
{
"income_events": [
{
"account": "wallet",
"tag": "deposit",
"credit_msat": 200000000000,
"debit_msat": 0,
"currency": "bcrt",
"timestamp": 1738500000,
"description": "edited utxo description",
"outpoint": "txidbk0000000000000000000000000000000000000000000000000000000000:1"
},
{
"account": "wallet",
"tag": "deposit",
"credit_msat": 2000000000,
"debit_msat": 0,
"currency": "bcrt",
"timestamp": 1738510000,
"outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1"
},
{
"account": "wallet",
"tag": "onchain_fee",
"credit_msat": 0,
"debit_msat": 1004927000,
"currency": "bcrt",
"timestamp": 1738520000,
"txid": "channeltxid340000340000340000340000340000340000340000340000340000"
},
{
"account": "wallet",
"tag": "onchain_fee",
"credit_msat": 1004927000,
"debit_msat": 0,
"currency": "bcrt",
"timestamp": 1738530000,
"txid": "channeltxid340000340000340000340000340000340000340000340000340000"
}
]
}
Example 2
Request:
$ lightning-cli bkpr-listincome
{
"id": "example:bkpr-listincome#2",
"method": "bkpr-listincome",
"params": {}
}
Response:
{
"income_events": [
{
"account": "wallet",
"tag": "deposit",
"credit_msat": 200000000000,
"debit_msat": 0,
"currency": "bcrt",
"timestamp": 1738510000,
"description": "edited utxo description",
"outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1"
},
{
"account": "channelid0230000230000230000230000230000230000230000230000230000",
"tag": "invoice",
"credit_msat": 500000000,
"debit_msat": 0,
"currency": "bcrt",
"timestamp": 1738520000,
"description": "edited invoice description from description send some sats l2 to l3",
"payment_id": "paymentid0000202020202020202020202020202020202020202020202020202"
},
{
"account": "channelid0340200340200340200340200340200340200340200340200340200",
"tag": "onchain_fee",
"credit_msat": 0,
"debit_msat": 6960000,
"currency": "bcrt",
"timestamp": 1738530000,
"txid": "channeltxid340200340200340200340200340200340200340200340200340200"
}
]
}
ok that's the whole page, you ate that π«Ά this one's from Core Lightning v26.06.9, dated LIGHTNING-BKPR-LISTINCOME(7) β go check your income events bestie, your node is literally main character energy πβ¨
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms