Follow

How to plot one's C-Lightning node's payment forwarding history 😀

It's technically still a bash one-liner! 🤣

· · Web · 1 · 1 · 3

lightning-cli listforwards | jq -r '[.forwards[] | select(.status == "settled" and .received_time) | { "time": (.received_time | strftime("%Y-%m")), "btc": (.out_msatoshi / 1000 / 100000000) }] | reduce .[] as $item ({}; .[$item.time] += $item.btc) | to_entries[] | "\(.key) \(.value)"' | feedgnuplot --lines --points --legend 0 "BTC forwarded per month" --title "routing activity" --y2 1 --lines --domain --timefmt "%Y-%m" --set 'format x "%Y-%m"' --terminal 'dumb 120,50' --unset grid --exit

Sign in to participate in the conversation
Bitcoin Zoomers

The Bitcoin Zoomer's Citadel