Haskell-based CoinMetrics.io tools
These tools are used by CoinMetrics.io team for exporting data from blockchains into analytical databases and monitoring full nodes synchronization state.
- coinmetrics-export - utility for exporting data from blockchains in formats suitable for inserting into analytics databases (SQL, Avro).
- coinmetrics-monitor - utility for monitoring blockchain nodes and providing Prometheus-compatible metrics.
The project is being used in production at Coin Metrics, but many things are in flux or fragile, and docs may be outdated. Command line interface is more or less stable but may change. Please use with caution.
- Binance Chain
- Generic Rosetta API (WIP)
- Generic Tendermint
There're no stable releases yet. All binaries are "bleeding edge".
One easy way to run the tools is to use docker.
Pull the latest version:
docker pull coinmetrics/haskell-tools
docker run -it --rm --net host coinmetrics/haskell-tools coinmetrics-export <arguments>
Building from source
Building with Nix is recommended, because dependencies are fetched and built automatically.
nix build -Lf ./release.nix bins
With Stack + Nix
stack build --nix
Stellar export also requires xdrpp and Stellar XDR headers built with XDR compiler, which may be hard to build manually. By default Stellar support is enabled, so build will fail without them. You can disable Stellar support if you don't need it:
stack build --flag coinmetrics-all-blockchains:-stellar. If you do need it, please use one of the Nix build methods above (with Stack or without).
The code is only tested on Linux (but maybe works on other OSes too).