/xdrparser

Command line tool to unpack Stellar's history xdr files

Primary LanguagePythonMIT LicenseMIT

xdrparser

Command line tool to parse the .xdr files written to the history archive of a stellar-core and print their data as json.

Compatibility

  • Python >= 3.4
  • Tested on Linux, Mac OS, and Windows.

Installation

From PyPI:

pip install xdrparser

From the repository:

pip install git+git://github.com/kinecosystem/xdrparser#egg=xdrparser  

Usage

$ xdrparser --help

Usage: xdrparser [OPTIONS] XDR_FILE

  Command line tool to parse Stellar's xdr history files.

Options:
  --with-hash        Calculate tx hashes, only for a 'transactions' xdr file,
                     must be used with --network-id
  --network-id TEXT  Network-id/network paraphrase, needed for --with-hash
  --indent INTEGER   Number of spaces to indent the json output with
  --help             Show this message and exit.