LIGHTNING-LISTNETWORKEVENTS(7)

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

πŸ’… LIGHTNING-LISTNETWORKEVENTS(7) β€” like, the whole manual page, bestie

okay so this is lightning-listnetworkevents β€” a Core Lightning RPC situation. Buckle in, it's actually so good.


✨ NAME ✨

listnetworkevents β€” the command you use to ask your node "hey girl, what's been happening on the network lately?" πŸ¦‹


🌸 SYNOPSIS 🌸

listnetworkevents [id] [index] [start] [limit]

look at her. four optional little args. no drama. ✨


πŸ’– DESCRIPTION πŸ’–

fr fr, this command was added in v25.12 β€” so if you're on something ancient, that's why she's ghosting you. πŸ‘‘

The listnetworkevents RPC command pulls up the log of connections, disconnections and pings on the network. and like… why do we care? because you can analyze it to evaluate node reliability and latency, that's why. character research, basically. πŸ”

⚠️ heads up bestie: the autoclean plugin deletes network events older than 30 days. so if your history is looking a little short, that's not a glitch. you can adjust autoclean-networkevents-age to change this. πŸ™ˆ

now the args, one by one:

  • id (string, optional) β€” a node id. if you set it, only network events for this peer come back. basically "show me only this one's receipts". πŸ’…
  • index (string, optional) (always "created") β€” this controls the ordering of results. the default is created. πŸ”₯
  • start (u64, optional) β€” if index is specified, start may be specified to start from that value, which is generally returned from lightning-wait(7). πŸŽ€
  • limit (u32, optional) β€” if index is specified, limit can be used to specify the maximum number of entries to return. no infinite scroll here, sorry. ✨

πŸ¦‹ RETURN VALUE πŸ¦‹

On success, an object containing networkevents is returned. it's an array of objects, where each object contains:

  • created_index (u64) β€” 1-based index indicating order this network event was created in. 1-based, so yes, the first one is 1, not 0. iykyk. πŸ”’
  • timestamp (u64) β€” time this event was recorded, in seconds since January 1 1970 UTC. the classic. ⏰
  • peer_id (pubkey) β€” the node the network connection was talking to. 🫢
  • type (string) β€” the type of event (currently ping, connect, connect_fail or disconnect). the whole little cast of characters. 🎭
  • reason (string, optional) β€” the cause of the event (if known). ✨
  • duration_nsec (u64, optional) β€” the time taken. specifically: for ping, the latency; for connect / connect_fail, the time taken to get a result; for disconnect, the time we were connected. she's versatile. πŸ’…

🧚 if type is "connect_fail"

  • connect_attempted (boolean) β€” True if we found an address we could attempt to connect to, e.g. ignoring Tor addresses if we don't have a proxy, and ignoring IPv6 addresses if we don't have IPv6 support. so False here doesn't mean "we failed", it means "we never even got to try". important distinction, bestie. 😭

πŸ‘‘ AUTHOR πŸ‘‘

Rusty Russell rusty@rustcorp.com.au is mainly responsible. legend behaviour, honestly. 🌈


πŸŽ€ SEE ALSO πŸŽ€


⭐ RESOURCES ⭐

Main web site: https://github.com/ElementsProject/lightning β€” go look, it's giving main character energy. πŸ”₯


k that's the whole page, mwah πŸ’‹ β€” this was Core Lightning v26.06.9, LIGHTNING-LISTNETWORKEVENTS(7), and yes she ate. periodt. πŸ“πŸ’œ

πŸ“¦ where this page comes from