LIGHTNING-NOTIFICATION-BLOCK_ADDED(7)

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

πŸ’… LIGHTNING-NOTIFICATION-BLOCK_ADDED(7) πŸ’…

okay so bestie, welcome to lightning-notification-block_added, section 7 of the manual β€” the one where we talk about notifications, and specifically the one that goes "hey girl, a new block just dropped" πŸ”₯


✨ NAME ✨

block_added β€” the notification that's literally telling you a block has been added to the blockchain. that's it. that's the whole vibe. πŸ‘‘


🌸 DESCRIPTION 🌸

hii so this notification? it was added in v22.11 β€” so if you're on anything older, she is not there, no cap. πŸ™ˆ

the block_added notification gets sent whenever the node receives a new block from the blockchain. every time. that's the whole trigger. the node sees a new block, it fires this off, you get notified. slay. πŸ’–


πŸŽ€ NOTIFICATION PAYLOAD πŸŽ€

here's what actually shows up in the payload, and yes, every field matters so don't skip:

  • hash (hash) β€” the hash of the block. iconic identifier behavior. ⭐
  • height (u32) β€” the total block height. a u32, exactly as written, don't come for me. πŸ“

that's the whole page, bestie β€” tiny but mighty, fr fr. πŸ¦‹

lowkey a reminder: keep the field types exactly as they are (hash and u32), because the payload is the payload and we don't freestyle with types around here. πŸ’…

sign-off szn 🌈 β€” this lil beauty comes to you from Core Lightning v26.06.9, page LIGHTNING-NOTIFICATION-BLOCK_ADDED(7). go forth and get notified, mwah πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from