LIGHTNING-BKPR-E...IPTIONBYOUTPOINT(7)
π LIGHTNING-BKPR-E...IPTIONBYOUTPOINT(7) β¨
okay so bestie, welcome to the manual page for LIGHTNING-BKPR-E...IPTIONBYOUTPOINT(7) β yes the name is a whole mouthful, no I did not choose it, but we're gonna slay this together π«Ά
πΈ NAME πΈ
bkpr-editdescriptionbyoutpoint β the command that lets you change the description for events with {outpoint} after they're already made. retroactive glow-up, basically π
π SYNOPSIS π
bkpr-editdescriptionbyoutpoint outpoint description
π¦ DESCRIPTION π¦
Command added in v24.11. yes she's new-ish, she's fresh, we love a recent addition β¨
The bkpr-editdescriptionbyoutpoint RPC command updates all chain and channel events that match the {outpoint} with the provided {description}. not just one β all of the matching ones, okay? the whole squad gets the new fit π
outpoint(string) β the outpoint to update the description for.description(string) β the description to update to.
π RETURN VALUE π
On success, an object containing updated is returned. It's an array of objects, where each object contains:
account(string) β the account name. If the account is a channel, thechannel_id.type(string) (one of"chain","channel") β coin movement type.tag(string) β description of movement.credit_msat(msat) β amount credited.debit_msat(msat) β amount debited.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, the most recent timestamp.description(string) β the description of this event.
π and then it gets conditional, stay with me
If type is "chain":
outpoint(string) β thetxid:outnumfor this event.blockheight(u32) β for chain events, blockheight this occured at.description(string, optional) β a description of this outpoint.origin(string, optional) β the account this movement originated from.payment_id(hex, optional) β Lightning payment identifier. For an htlc, this will be the preimage.txid(txid, optional) β the txid of the transaction that created this event.
If type is "onchain_fee":
txid(txid) β the txid of the transaction that created this event.
If type is "channel":
fees_msat(msat, optional) β amount paid in fees.is_rebalance(boolean, optional) β is this payment part of a rebalance.payment_id(hex, optional) β Lightning payment identifier. For an htlc, this will be the preimage.part_id(u32, optional) β counter for multi-part payments.
π AUTHOR π
Lisa Neigut niftynei@gmail.com is mainly responsible. ty queen π«Ά
β SEE ALSO β
lightning-bkpr-editdescriptionbypaymentid(7)lightning-bkpr-listaccountevents(7)lightning-bkpr-listincome(7)
π§ RESOURCES π§
Main web site: https://github.com/ElementsProject/lightning
π₯ EXAMPLES π₯
π Example 1
Request:
$ lightning-cli bkpr-editdescriptionbyoutpoint -k "outpoint"="txidbk0101010101010101010101010101010101010101010101010101010101:1" "description"="edited utxo description"
{
"id": "example:bkpr-editdescriptionbyoutpoint#1",
"method": "bkpr-editdescriptionbyoutpoint",
"params": {
"outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1",
"description": "edited utxo description"
}
}
Response:
{
"updated": [
{
"account": "wallet",
"type": "chain",
"tag": "deposit",
"credit_msat": 200000000000,
"debit_msat": 0,
"currency": "bcrt",
"outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1",
"timestamp": 1738510000,
"blockheight": 110,
"description": "edited utxo description"
}
]
}
π Example 2
Request:
$ lightning-cli bkpr-editdescriptionbyoutpoint -k "outpoint"="abcd020202020202020202020202020202020202020202020202020202020202:1" "description"="edited utxo description for non existing outpoint"
{
"id": "example:bkpr-editdescriptionbyoutpoint#2",
"method": "bkpr-editdescriptionbyoutpoint",
"params": {
"outpoint": "abcd020202020202020202020202020202020202020202020202020202020202:1",
"description": "edited utxo description for non existing outpoint"
}
}
Response:
{
"updated": []
}
ngl bestie, that empty updated array in Example 2 is not an error β the outpoint just didn't exist, so nothing got updated. no cap, that's just what the response looks like π
πΈ okay that's the whole page, you ate that. this was Core Lightning v26.06.9 β mwah, go touch some grass now πβ¨
π¦ 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