LIGHTNING-NOTIFICATION-BLOCK_ADDED(7)
π 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. au32, 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 (hashandu32), 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
- 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