<p>If you are running a full node you have the blockchain stored on your HDD/SSD. If it was stored in your memory you would lose the blockchain everytime you restart your computer.</p>

<blockquote>
  <p>If data is being stored in file, how does the blockchain create the files, put the data into them, and in what format are the files?</p>
</blockquote>

<p>The blockchain doesn't create the data/files, the blockchain is the data. In case of the Bitcoin Core wallet you can see the blockchain data as <code>.DAT</code> files in your <code>AppData</code> directory under:</p>

<pre><code>C:\Users\fihdi\AppData\Roaming\Bitcoin\blocks
</code></pre>

<p>In case you use the standard directory.</p>

CC BY-SA 3.0
2018-03-03T10:21:47.793Z
2018-03-03T10:21:47.793Z
fihdi
<p>How does data get stored for bitcoin?</p>

<p>Does data in the blocks get stored in files or a database and then get referenced by the blockchain?</p>

<p>If data is being stored in file, how does the blockchain create the files, put the data into them, and in what format are the files?</p>

<p>If none of that is true and the blockchain data exists in memory, if all of the nodes went down, how do you bring the blockchain back up?</p>

<bitcoin-core><blockchain><development>
Where is the actual data stored and how does that data get stored
anarcrypto
# Where is the actual data stored and how does that data get stored

(Asked by: username_0 on 2018-03-02)

How does data get stored for bitcoin?

Does data in the blocks get stored in files or a database and then get referenced by the blockchain?

If data is being stored in file, how does the blockchain create the files, put the data into them, and in what format are the files?

If none of that is true and the blockchain data exists in memory, if all of the nodes went down, how do you bring the blockchain back up?

**Tags:** bitcoin-core, blockchain, development


---

## 1 answers

### Answer by username_1 on 2018-03-03. Score: 1

If you are running a full node you have the blockchain stored on your HDD/SSD. If it was stored in your memory you would lose the blockchain everytime you restart your computer.

> If data is being stored in file, how does the blockchain create the files, put the data into them, and in what format are the files?

The blockchain doesn't create the data/files, the blockchain is the data. In case of the Bitcoin Core wallet you can see the blockchain data as `.DAT` files in your `AppData` directory under:

```
C:\Users\username_1\AppData\Roaming\Bitcoin\blocks

```

In case you use the standard directory.


---

