[feature]: Easy CSV ledger export #9441
Replies: 7 comments
-
Have out tried Faraday ? It has a nice "node audit" command which can give you good accounting data for your node |
Beta Was this translation helpful? Give feedback.
-
I have it as part of the opt-add-lightning-terminal fragment in BTCPay Server, but it doesn't seem to work out of the box. Not quite sure what I need to get it fixed up, have tried:
Gives a connection error, so assuming something not quite right with the docker setup. |
Beta Was this translation helpful? Give feedback.
-
You might need to adjust the paths to match the BTCPay Server docker setup. |
Beta Was this translation helpful? Give feedback.
-
Thanks - with that pointer, I think I have it:
Will have a play and see what it outputs |
Beta Was this translation helpful? Give feedback.
-
hmmm, Faraday requires bitcoin to have the
I'm sure lncli could provide this data natively without having to hack about with other tools. Appreciate your help anyhow, thank you.. |
Beta Was this translation helpful? Give feedback.
-
It requires a txindex to make sure it can get all the Bitcoin data needed to generate the accounting report. |
Beta Was this translation helpful? Give feedback.
-
The txindex requirement seems to be Faraday specific. LND supports a pruned node, and I can get the raw data in JSON format using lncli, so it should be possible to implement an audit command in lncli. Tools like BoS and Faraday are helpful, but accounting is too important a feature to relegate to separate tools. I would appreciate if this enhancement to lncli could therefore be considered. |
Beta Was this translation helpful? Give feedback.
-
It's frustrating trying to reconcile node balance movements for accounting purposes. Right now, multiple queries must be performed via lncli, their JSON transformed and combined. Payments need to have their lightning invoice decoded for description details.
Tools like BoS can help, but getting everything to reconcile from starting balance to end balance is almost impossible, especially when mSats are rounded and BoS is limited by the available APIs (eg to determine owners of channel outputs).
I'd like to see a single
lncli
command that can be performed to export a complete CSV of balance affecting transactions.Something like the ledger format that is typically exported from exchanges / uploaded to crypto tax services:
Options for the report could include:
This would make adoption by businesses easier by making the accounting easier.
Cheers
Rob
Beta Was this translation helpful? Give feedback.
All reactions