bitcoinjs / fast-dat-parser

Superfast blockchain parser for stats
MIT License
74 stars 26 forks source link

Usage instructions #31

Closed Oshirowanen closed 3 years ago

Oshirowanen commented 3 years ago

Got this successfully compiled and running. I tried the command:

cat ~/.bitcoin/blocks/blk02272.dat | ./parser -t1 | ./bestchain > chain.dat

Which is the latest blk*.dat file as of writing the issue request.

It creates a chain.dat file. How do I read the chain.dat file, or how do I use the chain.dat file?

junderw commented 3 years ago

That is out of scope for this project.

It is merely made to order the data contained within dat files (since bitcoind doesn't order them in any way)...

Any parsing to human readable data requires knowledge of what a dat file contains and how to use certain tools to parse it.

Some other users have asked advice in previous issues. Please use the search function.

junderw commented 3 years ago

https://github.com/bitcoinjs/bitcoinjs-lib/issues/1562

Here, I found it for you.