Jose Sammut on Nostr: In case someone finds this useful; 👇👇👇 ...
In case someone finds this useful; 👇👇👇
lightning-cli
listpays | jq -r '.pays[] | "\(.amount_sent_msat)
\(.completed_at)"'
lightning-cli
listinvoices | jq -r '.invoices[] | "\(.amount_received_msat)
\(.paid_at)"'
then
convert msat to sat =B5/1000 or and to btc =E5/100000000
and unix to date =(C5/86400)+DATE(1970,1,1)
Can you tell I'm on a budget?
Published at
2024-04-26 19:25:24Event JSON
{
"id": "03059a9e73f702a2702df426ccdd54797597190c7b22753c50346ec8be97274d",
"pubkey": "24b45900a92fbc4527ccf975bd416988e444c6e4d9f364c5158667f077623fe2",
"created_at": 1714159524,
"kind": 1,
"tags": [
[
"imeta",
"url https://image.nostr.build/0755a4af7e040c4f855f519177259b8d475fbbd954f515ecf712d1154ebf2b4d.jpg",
"ox 0755a4af7e040c4f855f519177259b8d475fbbd954f515ecf712d1154ebf2b4d https://nostr.build",
"x c514fda9eea9cb8b41df234601e0fbaac04f2e6e63afbfef3af47737ef6f242b",
"m image/jpeg",
"dim 666x714",
"bh L2L#2*00Ef0000_3Mx%M00W;?H.8",
"blurhash L2L#2*00Ef0000_3Mx%M00W;?H.8"
]
],
"content": "In case someone finds this useful; 👇👇👇\n\n https://image.nostr.build/0755a4af7e040c4f855f519177259b8d475fbbd954f515ecf712d1154ebf2b4d.jpg\n\nlightning-cli\n listpays | jq -r '.pays[] | \"\\(.amount_sent_msat)\n \\(.completed_at)\"'\n\n lightning-cli\n listinvoices | jq -r '.invoices[] | \"\\(.amount_received_msat)\n \\(.paid_at)\"'\n\nthen \nconvert msat to sat =B5/1000 or and to btc =E5/100000000\nand unix to date =(C5/86400)+DATE(1970,1,1)\n\nCan you tell I'm on a budget?",
"sig": "7e90de1902e5f7629c03e87bff1603df29e169d953f8c9b3b47bf89c36be27ba63efadb1d21ae62bd0630b509d97e0fb3e9e011fd0cc9c28b5dca35ee5fb64db"
}