LIGHTNING-NOTIFI...-BALANCE_SNAPSHOT(7)
π LIGHTNING-NOTIFI...-BALANCE_SNAPSHOT(7) π
okay so bestie, this is a page from the Core Lightning manual β the lightning-notifi...-balance_snapshot one, aka the glow-up notification page. it's short, it's cute, it's giving "receipts for your sats" energy, and honestly? we're obsessed. let's get into it π
β¨ NAME β¨
balance_snapshot β Notification for balance snapshots π§Ύβ¨
πΈ DESCRIPTION πΈ
This notification was added in v24.11 β so if you're out here on some ancient version, no it wasn't, bestie π
The balance_snapshot notification informs whenever lightningd emits a balance snapshot for bookkeeping. like, it's the group chat ping that says "hey, your books just got balanced, look at this" π«Ά
π¦ NOTIFICATION PAYLOAD π¦
here's what shows up in the payload β every field, no skipping, we don't do that here:
node_id(pubkey) β the node id the snapshot was taken for πblockheight(u32) β the blockheight at which the snapshot was taken π§±timestamp(u32) β the snapshot time as seconds since epoch β°accounts(array of objects) β the balances for each tracked account at the snapshot time, and inside that:account_id(string) β the account identifier for the balance π·οΈbalance_msat(msat) β the account balance in millisatoshis π°coin_type(string) β the BIP173 coin type name for the balance πͺ
π fr fr, that's the whole payload. every object, every field, every unit β that's the vibe check and it passed β¨
π a lil sign-off π
this iconic lil page is from Core Lightning v26.06.9 β go forth and snapshot those balances, bestie, you're the main character of bookkeeping 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