LIGHTNING-BKPR-DUMPINCOMECSV(7)
π NAME π
okay so bestie, welcome to the lightning-bkpr-dumpincomecsv(7) page. The command is bkpr-dumpincomecsv β and it is literally the βCommand to emit a CSV of income events.β Slay.
β¨ SYNOPSIS β¨
bkpr-dumpincomecsv csv_format [csv_file] [consolidate_fees] [start_time] [end_time]
π DESCRIPTION π
okay so the bkpr-dumpincomcsv RPC command writes a CSV file to disk at the csv_file location. This is a formatted output of the listincome RPC command. Hereβs the whole vibe:
csv_format(string) β which CSV format to use. Peep RETURN VALUE for the options.csv_file(string, optional) β on-disk destination of the generated CSV file.consolidate_fees(boolean, optional) β iftrue, we emit a single, consolidated event for any onchain-fees for atxidand account. Otherwise, events for every update to the onchain fee calculation for this account andtxidwill be printed. Note that this means that the events emitted are non-stable, i.e. callingdumpincomecsvtwice may result in different onchain fee events being emitted, depending on how much information we've logged for that transaction. The default isTrue.start_time(u64, optional) β UNIX timestamp (in seconds) that filters events after the provided timestamp. The default is zero.end_time(u64, optional) β UNIX timestamp (in seconds) that filters events up to and at the provided timestamp. The default ismax-int.
π¨ bestie, that non-stable fee-event thing is real: twice does not always mean identical onchain fee events, depending on how much info got logged. No cap.
πΈ RETURN VALUE πΈ
On success, an object is returned, containing:
csv_file(string) β file that the csv was generated to.csv_format(string) (one of"cointracker","koinly","harmony","quickbooks") β format to print csv as.
π AUTHOR π
Lisa Neigut niftynei@gmail.com is mainly responsible.
π¦ SEE ALSO π¦
lightning-bkpr-listincome(7), lightning-bkpr-listfunds(7), lightning-bkpr-listaccountevents(7), lightning-bkpr-channelsapy(7), lightning-listpeers(7)
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1
Request:
$ lightning-cli bkpr-dumpincomecsv "koinly" "koinly.csv"
{
"id": "example:bkpr-dumpincomecsv#1",
"method": "bkpr-dumpincomecsv",
"params": [
"koinly",
"koinly.csv"
]
}
Response:
{
"csv_file": "koinly.csv",
"csv_format": "koinly"
}
Core Lightning v26.06.9 β LIGHTNING-BKPR-DUMPINCOMECSV(7) β thatβs the whole page, bestie, mwah π
π¦ 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