<blockquote>
  <p>Is the blocks and chainstate folder store the same blocks data ?</p>
</blockquote>

<p>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).</p>

<blockquote>
  <p>How can we read those data using code and display that on the web frontend like the blockchain explorer websites</p>
</blockquote>

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

CC BY-SA 4.0
2018-11-01T06:22:46.653Z
===>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
CC BY-SA 4.0
2018-11-01T06:43:17.710Z
No, you need different software than Bitcoin Core.
Pieter Wuille
CC BY-SA 4.0
2018-11-01T06:53:13.630Z
ok , then how the blockchain-explorer websites display blocks data ?
Pankaj Kumar
CC BY-SA 4.0
2018-11-01T06:54:48.273Z
By using software they wrote themselves generally, to index the Bitcoin blockchain.
Pieter Wuille
CC BY-SA 4.0
2018-11-01T06:58:08.107Z
https://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
CC BY-SA 4.0
2018-11-01T08:02:05.487Z
blk00000.dat  , is this file represent single block with transactions  ?
Pankaj Kumar
CC BY-SA 4.0
2020-09-21T16:38:31.760Z
@Pieter Wuille  -  " (in simplified terms, it stores every spendable coin, who owns it, and how much it's worth)"  Not sure about the "and how much it's worth" part. Are you sure about that? To my knowledge the bitcoin block-chain does not include any prices related to any existing currencies. Rather is will store the amount of bitcoin each public key is currently holding, but not the value in dollar or yen or any other currency. Would you care elaborating on your assumption please.
Fred Cailloux
CC BY-SA 4.0
2020-09-21T16:50:38.490Z
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.
Pieter Wuille
CC BY-SA 4.0
2018-11-01T06:17:38.033Z
2018-11-01T06:17:38.033Z
Pieter Wuille
<blockquote>
<p>How can we read those data using code and display that on the web frontend like the blockchain explorer websites</p>
</blockquote>
<blockquote>
<p>I am searching for any other library in python that allow the same functionality</p>
</blockquote>
<p>See if the <a href="https://github.com/sr-gi/bitcoin_tools/tree/master/bitcoin_tools/analysis/status" rel="nofollow noreferrer">STATUS</a>, mentioned in the <a href="https://discovery.ucl.ac.uk/id/eprint/10063357/1/utxo_analysis-v2.pdf" rel="nofollow noreferrer">Analysis of the Bitcoin UTXO set 2018</a>, would help?</p>
<p>&quot;<em>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</em>&quot;</p>

CC BY-SA 4.0
2021-06-16T09:38:37.757Z
2021-06-16T09:38:37.757Z
ArtemGr
<p>Is the blocks and chainstate folder store the same blocks data ?</p>

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

<bitcoind><block>
What is the difference between chainstate and blocks folder?
Pankaj Kumar
# What is the difference between chainstate and blocks folder?

(Asked by: username_0 on 2018-11-01)

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

**Tags:** bitcoind, block


---

## 2 answers

### Answer by username_1 on 2018-11-01. Score: 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.

> **Comments:**
> **username_0**: ===>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 ?  
> **username_1**: No, you need different software than Bitcoin Core.  
> **username_0**: ok , then how the blockchain-explorer websites display blocks data ?  
> **username_1**: By using software they wrote themselves generally, to index the Bitcoin blockchain.  
> **username_0**: https://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  
> **username_0**: blk00000.dat  , is this file represent single block with transactions  ?  
> **username_2**: @username_1  -  " (in simplified terms, it stores every spendable coin, who owns it, and how much it's worth)"  Not sure about the "and how much it's worth" part. Are you sure about that? To my knowledge the bitcoin block-chain does not include any prices related to any existing currencies. Rather is will store the amount of bitcoin each public key is currently holding, but not the value in dollar or yen or any other currency. Would you care elaborating on your assumption please.  
> **username_1**: 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.  

---

### Answer by username_3 on 2021-06-16. Score: 1

> 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](https://github.com/sr-gi/bitcoin_tools/tree/master/bitcoin_tools/analysis/status), mentioned in the [Analysis of the Bitcoin UTXO set 2018](https://discovery.ucl.ac.uk/id/eprint/10063357/1/utxo_analysis-v2.pdf), 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*"


---

