<blockquote>
  <ul>
  <li><strong>What is the Design of Bitcoin storage?</strong></li>
  <li><strong>where is the data of UTXOs for each wallet is maintained?</strong></li>
  </ul>
</blockquote>

<p>There's no need for every wallet to use the same storage format. The precise details of the storage format may be proprietary secrets or may be undocumented other than in the source code for that specific wallet.</p>

<p>This question could only be answered with some certainty for a specific version of a specific wallet.</p>

<blockquote>
  <ul>
  <li><strong>How is [the blockchain] stored ... across the network?</strong></li>
  </ul>
</blockquote>

<p>Every full node keeps a complete separate copy.</p>

<p>Lightweight nodes (SPV etc nodes) each maintain a pruned copy of the blockchain that only contains blocks with unspent transaction outputs.</p>

<blockquote>
  <ul>
  <li><strong>How is [the blockchain] ... shared across the network?</strong></li>
  </ul>
</blockquote>

<p>That is a rather separate question, there's probably an answer already here for that. Its probably described in Nakamoto's original whitepaper which is easy to find.</p>

<p>See also</p>

<ul>
<li><a href="https://bitcoin.stackexchange.com/q/32237/13866">How are transactions broadcast to the rest of the network?</a></li>
<li><a href="https://en.bitcoin.it/wiki/Network" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Network</a></li>
<li><p><a href="https://en.bitcoin.it/wiki/Protocol_documentation" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Protocol_documentation</a></p>

<p>which contains information of this sort:</p>

<p><a href="https://i.sstatic.net/Ib4yv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ib4yv.png" alt="small extract of Blockchain data format description"></a></p></li>
</ul>

CC BY-SA 4.0
2018-06-29T09:39:16.167Z
2018-06-29T09:58:11.273Z
2018-06-29T09:58:11.273Z
RedGrittyBrick
<p>The data is stored in the blockchain. Everything that you need comes from the blockchain. By scanning through the blockchain, a node can determine the UTXO set. If it is also a wallet, it can then find the transactions that pertain to it.</p>

CC BY-SA 4.0
2018-06-29T06:03:08.347Z
You misunderstood the question, **I'm asking for the data storage of UTXOs, blocks and others** like for UTXOs database is maintained and stored at the dir  **$DATADIR/chainstate** which is updated with a new block and in case of reorganization of block active state data is rollback.
idk
CC BY-SA 4.0
2018-06-29T05:38:26.940Z
2018-06-29T05:38:26.940Z
Ava Chow
<p>How is bitcoin network stored and shared across the network? For instance, where is the data of UTXOs for each wallet is maintained?  </p>

<transactions><bitcoin-core><wallet>
What is the Design of Bitcoin storage?
idk
# What is the Design of Bitcoin storage?

(Asked by: username_0 on 2018-06-29)

How is bitcoin network stored and shared across the network? For instance, where is the data of UTXOs for each wallet is maintained?

**Tags:** transactions, bitcoin-core, wallet


---

## 2 answers

### Answer by username_1 on 2018-06-29. Score: 1 | Accepted answer

> * **What is the Design of Bitcoin storage?**
> * **where is the data of UTXOs for each wallet is maintained?**

There's no need for every wallet to use the same storage format. The precise details of the storage format may be proprietary secrets or may be undocumented other than in the source code for that specific wallet.

This question could only be answered with some certainty for a specific version of a specific wallet.

> * **How is [the blockchain] stored ... across the network?**

Every full node keeps a complete separate copy.

Lightweight nodes (SPV etc nodes) each maintain a pruned copy of the blockchain that only contains blocks with unspent transaction outputs.

> * **How is [the blockchain] ... shared across the network?**

That is a rather separate question, there's probably an answer already here for that. Its probably described in Nakamoto's original whitepaper which is easy to find.

See also

* [How are transactions broadcast to the rest of the network?](https://bitcoin.stackexchange.com/q/32237/13866)
* <https://en.bitcoin.it/wiki/Network>
* <https://en.bitcoin.it/wiki/Protocol_documentation>

  which contains information of this sort:

  [![small extract of Blockchain data format description](https://i.sstatic.net/Ib4yv.png)](https://i.sstatic.net/Ib4yv.png)


---

### Answer by username_2 on 2018-06-29. Score: 0

The data is stored in the blockchain. Everything that you need comes from the blockchain. By scanning through the blockchain, a node can determine the UTXO set. If it is also a wallet, it can then find the transactions that pertain to it.

> **Comments:**
> **username_0**: You misunderstood the question, **I'm asking for the data storage of UTXOs, blocks and others** like for UTXOs database is maintained and stored at the dir  **$DATADIR/chainstate** which is updated with a new block and in case of reorganization of block active state data is rollback.  

---

