Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #904: [Wallet][RPC] Export basecoin transactions to CSV file
d5b00c3 Create exporttransactions feature that exports basecoin transactions to CSV format (supere) Pull request description: ### New Feature Add RPC `exporttransactions` to export to a CSV file, similar to the existing `listtransactions` RPC command ### Solution Added a well tested external CSV library to the project that will make future CSV functionality trivial in the future Added the rpc `exporttransactions` command supporting an output filename; and filtering by account, date range, and/or basic piped separated search string ``` exporttransactions (dummy filename start end categories include_watchonly) Exports transactions between 'start' date and 'end' date matching 'categories' to a CSV file. Note: To export from a specified "account", restart veild with -depreciatedrpc=accounts and use this RPC with an "account" argument Arguments: 1. "dummy" (string, optional) If set, should be "*" for backwards compatibility. 2. "filename" (string, optional) The filename with path (either absolute or relative to veild) [default=<datadir>/export/transactions.csv]. 3. "start" (string, optional) The start date in the format YYYY-MM-DD [default=beginning of ISO8601 time]. 4. "end" (string, optional) The end date in the format YYYY-MM-DD [default=present time].5. "filter" (string, optional) A pipe(|) separated transaction filter [default=no filter] Allowable filter words TBD 6. include_watchonly (bool, optional, default=false) Include transactions to watch-only addresses (see 'importaddress') ``` ### Bounty Payment Address sv1qqp6aptgvgp9t9h8sgzkqmu6cgq2e20l9x6fsl5ask7t3ygy2jagftcpq0x5z0h522ca5h06qq3hx33pke00r7gjt3j24n896gf55y68ptrmjqqqqd8lz3 ### Unit Testing Results Compare exported CSV with output of existing list transactions command. Should be identical except export CSV shows also sent basecoin transactions which were missing in listtransactions. ### Known issues - Only basecoin transactions at this time. - Pulls 'send' transactions from multi-destination transactions that you are a receiver. Tree-SHA512: 38badc8e982d330787fecec3a28d40d7be548f2d548e6e9202e07c793224322f592b761af008a082142f7abb0485098ec8e4ae5198cd05ddca41746cbf69df31
- Loading branch information