Author

Topic: How to export Lightning Network transactions (Read 88 times)

legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
March 10, 2024, 11:56:09 PM
#6
-snip-
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.
Enable the console via "View->Show Console", open the console and type in the command: lightning_invoice()

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.
legendary
Activity: 3206
Merit: 2904
Block halving is coming.
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
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.

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
hero member
Activity: 771
Merit: 528
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
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.
newbie
Activity: 8
Merit: 6
Hi @DaveF, I'm using Electrum
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
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
newbie
Activity: 8
Merit: 6
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?
Jump to: