Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wietsewind/xrpl-tx-exporter-csv
Export all XPRL transactions to CSV
https://github.com/wietsewind/xrpl-tx-exporter-csv
Last synced: about 13 hours ago
JSON representation
Export all XPRL transactions to CSV
- Host: GitHub
- URL: https://github.com/wietsewind/xrpl-tx-exporter-csv
- Owner: WietseWind
- Created: 2021-05-05T04:51:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T09:41:57.000Z (8 months ago)
- Last Synced: 2024-04-15T15:38:08.673Z (7 months ago)
- Language: JavaScript
- Homepage: https://transaction-exporter.xrpl-labs.com
- Size: 38.1 KB
- Stars: 18
- Watchers: 3
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XRPL transaction exporter [![npm version](https://badge.fury.io/js/xrpl-tx-export.svg)](https://badge.fury.io/js/xrpl-tx-export) [![](https://data.jsdelivr.com/v1/package/npm/xrpl-tx-export/badge)](https://cdn.jsdelivr.net/npm/xrpl-tx-export/dist/xrpl-tx-export.js)
This small node app fetches all transactions for an account and returns the results in CSV (when called from the command line) or as a parsed object (when used as a node module).
Uses [xrplcluster.com](https://xrplcluster.com) full history nodes.
![](https://s3.gifyu.com/images/giff47d82669761cede.gif)
### Exported columns:
- ledger (XRPL Ledger Index)
- direction (sent, received, other (eg. async DEX trading result))
- txtype (XRPL Transaction Type)
- date
- currency (XRP or ISSUER.CURRENCY)
- amount (amount in XRP (not drops) or IOU)
- is_fee
- fee (fee in XRP, chraged to own account)
- hash# Run: commandline (to CSV)
## Install
`npm install`
If you are new to anything code / nodejs related:
1. Install nodejs, `2:30` @ https://www.youtube.com/watch?v=9gVK6fp3UOo
2. Download this source: https://github.com/WietseWind/xrpl-tx-exporter-csv/archive/refs/heads/main.zip
3. Extract the ZIP and open your commandline, navigate to the folder where you extracted the ZIP
4. Type: `npm install`
5. Run (see below)## Run
`node index.js {account}`
eg.
`node index.js rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY`## Store output as CSV
`node index.js {account} > {somefile}`
eg.
`node index.js rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY > export.csv`# Run: as a module
Import `app` and call as function.
Call: `app(account, callback)`. See example use in [index.js](https://github.com/WietseWind/xrpl-tx-exporter-csv/blob/main/index.js)
# Run: browser
Ready to use: **[dist/index.html](https://raw.githack.com/WietseWind/xrpl-tx-exporter-csv/main/dist/index.html)**
Get the browserified version from the `dist` folder, and see `run as module`.
Ready to use: https://cdn.jsdelivr.net/npm/xrpl-tx-export/dist/xrpl-tx-export.jsSample:
https://jsfiddle.net/WietseWind/vtL3msawBuild for the browser using `npm run build` if working from source.