Skip to content

librastartup/libra-checker-grpc

Repository files navigation

About

gRPC client for Libra Checker to fetch transactions from the blockchain and deserialize them with Libra Canonical Serialization (LCS) library written in Python. Deserialized transactions are then stored in PostgreSQL database.

It runs as a background pm2 process that spawns the Python gRPC client.

Quick Start

  1. Install /yuan-xy/libra-client.

  2. Create PostgreSQL database tables (see png files for the structure).

  3. Edit and rename the example auth files to lcAuth.js and lcAuth.py.

  4. Install dependencies with npm install.


You can now fetch Libra transactions by running: node lcPython.js

To run it in the background: pm2 start lcPython.js


Thanks to Yuan Xy for his open source contributions and help.