LIGHTNING-BKPR-INSPECT(7)
π LIGHTNING-BKPR-INSPECT(7) π
okay so this is the lightning-bkpr-inspect page, bestie β yes the name at the top is all shouty caps but we're keeping it cute and keeping every single fact, no cap β¨
πΈ NAME πΈ
bkpr-inspect β the command that shows you the onchain footprint of a channel π£π
π¦ SYNOPSIS π¦
bkpr-inspect account
β¨ DESCRIPTION β¨
The bkpr-inspect RPC command lists all known on-chain transactions and the associated events for the account you hand it. It's literally the glow-up inspection montage for your channel π
It's useful for inspecting unilateral closes for a given channel account β iykyk, that's when you really wanna see what went down.
β οΈ Heads up bestie: this is only valid for channel accounts. Not a channel account? Not your moment, sorry π
account(string) β the channel account to inspect. That's the one and only thing you pass in π«Ά
π RETURN VALUE π
On success, an object containing txs is returned. It's an array of objects, and each object contains:
txid(txid) β transaction id π₯fees_paid_msat(msat) β amount paid in sats for this tx πΈoutputs(array of objects) β the outputs, and each one has:account(string) β account this output affected π―outnum(u32) β index of output π’output_value_msat(msat) β value of the output π°currency(string) β human-readable bech32 part for this coin type πͺcredit_msat(msat, optional) β amount credited to account βdebit_msat(msat, optional) β amount debited from account βoriginating_account(string, optional) β account this output originated from π±output_tag(string, optional) β description of output creation event π·οΈspend_tag(string, optional) β description of output spend event ποΈspending_txid(txid, optional) β transaction this output was spent in πpayment_id(hex, optional) β Lightning payment identifier. For an htlc, this will be the preimage π§
blockheight(u32, optional) β blockheight of transaction π§±
π AUTHOR π
Lisa Neigut niftynei@gmail.com is mainly responsible. giving main character energy fr fr π
π SEE ALSO π
lightning-listbalances(7)lightning-listfunds(7)lightning-listpeers(7)
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning β go lurk, it's iconic π¦
π EXAMPLES π
Example 1:
Request:
$ lightning-cli bkpr-inspect -k "account"="channelid0230200230200230200230200230200230200230200230200230200"
{
"id": "example:bkpr-inspect#1",
"method": "bkpr-inspect",
"params": {
"account": "channelid0230200230200230200230200230200230200230200230200230200"
}
}
Response:
{
"txs": [
{
"txid": "channeltxid230200230200230200230200230200230200230200230200230200",
"blockheight": 123,
"fees_paid_msat": 5020000,
"outputs": [
{
"account": "channelid0230200230200230200230200230200230200230200230200230200",
"outnum": 1,
"output_tag": "channel_open",
"output_value_msat": 1000000000,
"credit_msat": 1000000000,
"currency": "bcrt"
}
]
}
]
}
and that's the whole page, bestie β you ate that π β¨
this lil guide ships with Core Lightning v26.06.9, so go forth and inspect those channels, 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