bitcoinjs / fast-dat-parser

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

How can i use it to get list of all vout and vin ? #13

Closed ghost closed 6 years ago

ghost commented 6 years ago

i have successfully compiled on my centos and did

cat ~/.bitcoin/blocks/blk*.dat | ./parser -t0 | ./bestchain > chain.dat

cat ~/.bitcoin/blocks/blk*.dat | ./parser -j4 -t1 -wchain.dat > scripts.dat

whats next ?

sorry but this whole binary thing is kinda confusing for me.,

thanks for your time.

dcousens commented 6 years ago

What format do you want the list of vout and vin? What data are you after specifically?

ghost commented 6 years ago

i am looking for in vin txid , indexout

in vout txid , index , amount , address.

so i can insert this data in mysql . and then later calculate addresses having positive balance. Thanks.

dcousens commented 6 years ago

Sounds like you want a UTXO set? I might close this as a duplicate of https://github.com/dcousens/fast-dat-parser/issues/9 - re-open if you disagree.