bitcoinjs / fast-dat-parser

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

Dump all scripts with unspent balances #9

Open agoora opened 6 years ago

agoora commented 6 years ago

Please can you tell me, how command can be used to dump all hash160, address with unspent balances ? Thanks you.

agoora commented 6 years ago

Please, nobody can reply ? Thank you.

dcousens commented 6 years ago

Hi @agoora, at this time there isn't a transform that solely deals with a UTXO set.

You can acquire the required data using the leveldb transform, but, it has a lot of data you probably aren't interested in.

agoora commented 6 years ago

Please can you tell me, how command can be used to dump all hash160 with btc address ? Thanks again.

dcousens commented 6 years ago

dump all hash160 with btc address ?

The script transform migth be of interest to you:

1 - Outputs every script prefixed with a uint16_t length

agoora commented 6 years ago

Yes, I want to dump all hash160 with btc address, like old parser : https://github.com/znort987/blockparser And I do not understand how I can do with your "fast-dat-parser" ...

agoora commented 6 years ago

Please let me know how can I use "1 - Outputs every script prefixed with a uint16_t length" to dump all hash160 ? Thank you .

agoora commented 6 years ago

Thanks for the reply. Unfortunately, I do not know code , maybe you help me with a tool or a python script, ready to use and that could do this conversion. I count on your precious help. Thank you, Marc.

@agoora there isn't a command.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

dcousens commented 6 years ago

@agoora, I do not have the time to do this for you.

There might be an option for such specific functionality at a later date, but at this time, you'll need to do some of the hard yards to make it happen using fast-dat-parser.

Cheers,

Dan

agoora commented 6 years ago

Hi Dan, "unspents transform" could extract hash160 with unspent balances ? Thanks again.

dcousens commented 6 years ago

@agoora if you are referring to https://github.com/dcousens/fast-dat-parser/commit/600723a4008f58ef2c35649f57a99cdd97c16705, it isn't ready/tested yet, but certainly it may give you an idea of how you could do it.

agoora commented 6 years ago

Very good functionality, I encourage you to finish it as quickly as possible 👍 Will it be able to extract hash160, and btc address with unspent balances? What command can be executed? Please keep me informed when it is ready and can be tested.

ghost commented 6 years ago

+1

agoora commented 6 years ago

Happy New Year ! I thought Santa Claus came with a gift to be able to easily extract the hash160 ....:) When would this option be available? Let ma know. Thanks.