getAlby / lightning-browser-extension

The Bitcoin Lightning Browser Extension that brings deep Lightning & Nostr integration to the web. Wallet interface to multiple lightning nodes and key signer for Nostr, Liquid and onchain use.
https://getalby.com/#extension
MIT License
539 stars 194 forks source link

Export transactions with metadata #3118

Closed badonyx closed 4 months ago

badonyx commented 7 months ago

Feature description

Alby as a Lightning wallet needs a way to export transactions since there is no other way to track transactions e.g. for personal accounting. It should include metadata like amounts sent/received, fees, addresses/hashes, description where available, etc.

Describe the solution

An export function could be added to download transaction history to CSV. An example for comparison is Wallet of Satoshi which exports a CSV like this

utcDate,type,currency,amount,fees,address,description,pointOfSale
2023-01-01T12:00:00.000Z,CREDIT,LIGHTNING,0.00000420,0,lnbc1abc123,"Thanks, sats received! Note: Sats for xyz",false
2023-01-01T13:00:00.000Z,DEBIT,LIGHTNING,0.00000069,0,lnbc1def456,"Sent zap!",false
2023-01-01T14:00:00.000Z,CREDIT,LIGHTNING,0.00000069,0,lnbc1ghi789,"{""nostr_key"":""nostr_value"",...}",false

Describe alternatives

No response

Additional context

Overlaps with #1527 but with a very limited scope.

Are you working on this?

None

reneaaron commented 6 months ago

For your Alby account there is an CSV export over here:

https://csv.albylabs.com

However, we don't have that for the extension yet. Does that help?

badonyx commented 6 months ago

This looks like an elaborate scam. I've never seen this albylabs.com domain before.

reneaaron commented 6 months ago

It's not. We have several (experimental) apps running on this domain:

You can see the code over here:

https://github.com/getAlby/csv-export

Also, the app just requests reading your transaction history and will not be able to spend any funds.

image