1

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

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.

  • ===>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 ? – Pankaj Kumar Nov 1 '18 at 6:22
  • No, you need different software than Bitcoin Core. – Pieter Wuille Nov 1 '18 at 6:43
  • ok , then how the blockchain-explorer websites display blocks data ? – Pankaj Kumar Nov 1 '18 at 6:53
  • By using software they wrote themselves generally, to index the Bitcoin blockchain. – Pieter Wuille Nov 1 '18 at 6:54
  • github.com/bitpay/insight-api , this code from the bitpay explore all the blockchain transactions , I am searching for any other library in python that allow the same functionality – Pankaj Kumar Nov 1 '18 at 6:58

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.