LIGHTNING-NOTIFI...-BALANCE_SNAPSHOT(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

πŸŽ€ 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