<p>You can find how to read the blockchain leveldb (format and meaning of the keys) here: <a href="https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair">What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?</a></p>

<p>no idea (yet) for the UTXO :-)</p>

CC BY-SA 3.0
2014-10-10T17:19:43.420Z
He talks about the unspent transaction set too. Ctrl-F `Inside the chain state database`
Nick ODell
CC BY-SA 3.0
2014-10-14T14:41:21.703Z
@Nick, could you elaborate further on how to get the UTXO set from the chainstate database? That sounds like the answer I am looking for. But many other coins don't have the chainstate database, so how would I do this for those coins?
morsecoder
CC BY-SA 3.0
2014-10-14T15:36:19.140Z
@StephenM347 I don't think there's any *coin that doesn't have a transaction index or an unspent transaction index. Way too slow. Be more specific.
Nick ODell
CC BY-SA 3.0
2014-10-14T15:53:11.197Z
In my ~/Application Support/Bitcoin/ directory, there is a chainstate directory, which I think has the database of UTXOs. In my ~/Application Support/PPCoin/ directory, though, there is no chainstate directory. Is the UTXO set stored somewhere else in PPCoin? Can you explain what you mean by "Ctrl-F Inside the chain state database"? Thanks!
morsecoder
CC BY-SA 3.0
2014-11-03T15:14:13.470Z
@NickODell means: go to http://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair and search the sentence "Inside the chain state database" in your browser. Format of UTXO DB is explained here.
Vincent de Lagabbe
CC BY-SA 3.0
2014-10-10T15:59:29.687Z
2014-10-10T15:59:29.687Z
2017-04-13T12:47:33.610Z
Vincent de Lagabbe
<p>One guy on GitHub said that his software can make chainstate files readable for humans:<br />
<a href="https://github.com/in3rsha/bitcoin-utxo-dump" rel="nofollow noreferrer">https://github.com/in3rsha/bitcoin-utxo-dump</a></p>

CC BY-SA 4.0
2023-01-11T11:45:40.313Z
2023-01-22T23:49:33.490Z
2023-01-22T23:49:33.490Z
Myronets Denis
<p>1) What is the format of the LevelDB databases stored in the database directory?</p>

<p>I know there are some custom blockchain parsing libraries, such as <a href="https://code.google.com/p/blockchain/" rel="nofollow">this one</a>, but I'm wondering if I can just do a read of the chainstate database to get some basic information about the UTXO set. </p>

<p>2) Is there some sort of a LevelDB database explorer GUI that I can use to see what's in this database?</p>

<p>3) Could I have a second program that just read from this database? Would it be safe or would I mess up the database if I tried this?</p>

CC BY-SA 3.0
2014-10-14T15:34:55.913Z
https://github.com/hij1nx/levelweb
Nick ODell
<database><utxo>
How can I read chainstate database?
morsecoder
# How can I read chainstate database?

(Asked by: username_0 on 2014-10-06)

1) What is the format of the LevelDB databases stored in the database directory?

I know there are some custom blockchain parsing libraries, such as [this one](https://code.google.com/p/blockchain/), but I'm wondering if I can just do a read of the chainstate database to get some basic information about the UTXO set.

2) Is there some sort of a LevelDB database explorer GUI that I can use to see what's in this database?

3) Could I have a second program that just read from this database? Would it be safe or would I mess up the database if I tried this?

**Tags:** database, utxo

> **Comments:**
> **username_1**: https://github.com/hij1nx/levelweb  

---

## 2 answers

### Answer by username_2 on 2014-10-10. Score: 1

You can find how to read the blockchain leveldb (format and meaning of the keys) here: [What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?](https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair)

no idea (yet) for the UTXO :-)

> **Comments:**
> **username_1**: He talks about the unspent transaction set too. Ctrl-F `Inside the chain state database`  
> **username_0**: @Nick, could you elaborate further on how to get the UTXO set from the chainstate database? That sounds like the answer I am looking for. But many other coins don't have the chainstate database, so how would I do this for those coins?  
> **username_1**: @StephenM347 I don't think there's any *coin that doesn't have a transaction index or an unspent transaction index. Way too slow. Be more specific.  
> **username_0**: In my ~/Application Support/Bitcoin/ directory, there is a chainstate directory, which I think has the database of UTXOs. In my ~/Application Support/PPCoin/ directory, though, there is no chainstate directory. Is the UTXO set stored somewhere else in PPCoin? Can you explain what you mean by "Ctrl-F Inside the chain state database"? Thanks!  
> **username_2**: @NickODell means: go to http://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair and search the sentence "Inside the chain state database" in your browser. Format of UTXO DB is explained here.  

---

### Answer by username_3 on 2023-01-11. Score: 0

One guy on GitHub said that his software can make chainstate files readable for humans:  
<https://github.com/in3rsha/bitcoin-utxo-dump>


---

