Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CSV export #115

Merged
merged 16 commits into from
Oct 16, 2024
Merged

Add a CSV export #115

merged 16 commits into from
Oct 16, 2024

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Oct 4, 2024

Usage:

$ ./phoenix-cli exportcsv
payment history has been exported to /home/<user>/.phoenix/exports/export-1728035509.csv

The resulting CSV allows precise tracking of the balance and fee credit, and shows the split between mining and service fees:

  • balance: sum of all amount_msat
  • fee credit: sum of all fee_credit_msat

Columns:

date type amount_msat fee_credit_msat mining_fee_sat service_fee_msat payment_hash tx_id

Fixes #36.

@pm47 pm47 requested a review from t-bast October 8, 2024 08:34
@pm47 pm47 marked this pull request as ready for review October 8, 2024 08:34
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just naming nits!

@pm47 pm47 merged commit a3fe8f6 into master Oct 16, 2024
@pm47 pm47 deleted the export-csv branch October 16, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: accounting export for all transactions
3 participants