🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

xrpl-tx-export

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xrpl-tx-export

Fetch XRPL transactions to CSV format

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

XRPL transaction exporter npm version

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 full history nodes.

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:

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

Run: browser

Ready to use: 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.js

Sample: https://jsfiddle.net/WietseWind/vtL3msaw

Build for the browser using npm run build if working from source.

FAQs

Package last updated on 05 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts