7

Is the blocks and chainstate folder store the same blocks data ?

How can we read those data using code and display that on the web frontend like the blockchain explorer websites

2 Answers 2

6

Is the blocks and chainstate folder store the same blocks data ?

No, the blocks directory contains the actual blocks. The chainstate directory contains the state as of the latest block (in simplified terms, it stores every spendable coin, who owns it, and how much it's worth).

How can we read those data using code and display that on the web frontend like the blockchain explorer websites

No, you need transaction and address indexes for that. Bitcoin Core is not designed to provide those.

8
  • ===>No, you need transaction and address indexes for that. Bitcoin Core is not designed to provide those. *** how can we get transaction and address indexes from those 2 folders ? *** Is there is any python library that allow us to show that blocks data in meaning full ways e.g blockchain explorer ? Nov 1, 2018 at 6:22
  • 1
    No, you need different software than Bitcoin Core. Nov 1, 2018 at 6:43
  • 1
    ok , then how the blockchain-explorer websites display blocks data ? Nov 1, 2018 at 6:53
  • By using software they wrote themselves generally, to index the Bitcoin blockchain. Nov 1, 2018 at 6:54
  • 2
    By "how much it's worth" I of course meant the amount expressed in BTC (or really satoshi's), not what that value in any local fiat currency corresponds to. Sep 21, 2020 at 16:50
0

How can we read those data using code and display that on the web frontend like the blockchain explorer websites

I am searching for any other library in python that allow the same functionality

See if the STATUS, mentioned in the Analysis of the Bitcoin UTXO set 2018, would help?

"We have created STATUS (STatistical Analysis Tool for Utxo Set), an open source code tool that provides an easy way to access, decode, and analyze data from the Bitcoin’s UTXO set. STATUS is coded in Python 2"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.