Bitcoin Forum
May 09, 2024, 02:41:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to export Lightning Network transactions  (Read 90 times)
FibonacciTrader (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 6


View Profile
April 17, 2023, 07:48:02 PM
 #1

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?
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715222518
Hero Member
*
Offline Offline

Posts: 1715222518

View Profile Personal Message (Offline)

Ignore
1715222518
Reply with quote  #2

1715222518
Report to moderator
1715222518
Hero Member
*
Offline Offline

Posts: 1715222518

View Profile Personal Message (Offline)

Ignore
1715222518
Reply with quote  #2

1715222518
Report to moderator
1715222518
Hero Member
*
Offline Offline

Posts: 1715222518

View Profile Personal Message (Offline)

Ignore
1715222518
Reply with quote  #2

1715222518
Report to moderator
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6267


Crypto Swap Exchange


View Profile WWW
April 17, 2023, 08:29:32 PM
 #2

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
FibonacciTrader (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 6


View Profile
April 18, 2023, 11:13:41 PM
 #3

Hi @DaveF, I'm using Electrum
bomberb17
Hero Member
*****
Offline Offline

Activity: 771
Merit: 528



View Profile
March 09, 2024, 10:49:02 PM
 #4

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.
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
March 09, 2024, 11:36:01 PM
 #5

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
March 11, 2024, 03:56:09 AM
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!