Title: How to export Lightning Network transactions Post by: FibonacciTrader on April 17, 2023, 07:48:02 PM We can export wallet history into a .csv file via Wallet -> History -> Export. However, this does not include individual Lightning Network transactions. I need to export that level of detail for tax accounting. How to export each Lightning Network transaction into a .csv file?
Title: Re: How to export Lightning Network transactions Post by: DaveF on April 17, 2023, 08:29:32 PM What wallet are you using?
Are you running LND or C-Lightning yourself? Ride The Lightning will do it one way, LNbits will do it another and so on. -Dave Title: Re: How to export Lightning Network transactions Post by: FibonacciTrader on April 18, 2023, 11:13:41 PM Hi @DaveF, I'm using Electrum
Title: Re: How to export Lightning Network transactions Post by: bomberb17 on March 09, 2024, 10:49:02 PM I have the same question.
According to https://github.com/spesmilo/electrum/issues/8521 the command to do this is Code: ./run_electrum -o lightning_history Title: Re: How to export Lightning Network transactions Post by: BitMaxz on March 09, 2024, 11:36:01 PM I have the same question. According to https://github.com/spesmilo/electrum/issues/8521 the command to do this is Code: ./run_electrum -o lightning_history How about in Python did you try this command? If not try it first install a python in Windows and go to the Electrum directory or where it is installed and open CMD there and then use the command below. Replace the version of the electrum that you currently use. Code: electrum-4.5.2 -o lightning_history Title: Re: How to export Lightning Network transactions Post by: nc50lc on March 11, 2024, 03:56:09 AM -snip- Enable the console via "View->Show Console", open the console and type in the command: lightning_invoice()but I'm not sure how to do this using pre-compiled binaries (e.g. using electrum-4.x.x.exe in Windows) instead of using the source code. The result will be similar to the provided workaround but you'll have to manually copy and paste it to a '.txt' or '.json' file. If you need a '.csv' export, I'm afraid that it cannot output in that format. |