<p>It depends on the implementation. The network itself does not have a database engine. Bitcoin Core and software derived from it (most altcoin software is derived from Core) uses LevelDB to index the blockchain and store the chainstate data (UTXO set, current best block, etc.). It uses BerkeleyDB for the wallet.</p>

<p>However different implementations can use whatever database engine they want. For example, Armory uses LMDB for storing block indexes and other chainstate data.</p>

CC BY-SA 3.0
2017-08-31T17:55:48.153Z
2017-08-31T17:55:48.153Z
Ava Chow
<p>I'm curious to what database engine does Bitcoin and other altcoins use to store their blockchain data. Do they all support sql queries or is it something else?</p>

<p>The main ones I'd like to know are:</p>

<p>Bitcoin, Litecoin, Monero, Ethereum, Dash, Ripple, Factom, NXT, and other ones.</p>

<ripple><ethereum><database><monero><factom>
What database engine does Bitcoin and other top altcoins use?
Patoshi パトシ
# What database engine does Bitcoin and other top altcoins use?

(Asked by: username_0 on 2017-08-31)

I'm curious to what database engine does Bitcoin and other altcoins use to store their blockchain data. Do they all support sql queries or is it something else?

The main ones I'd like to know are:

Bitcoin, Litecoin, Monero, Ethereum, Dash, Ripple, Factom, NXT, and other ones.

**Tags:** ripple, ethereum, database, monero, factom


---

## 1 answers

### Answer by username_1 on 2017-08-31. Score: 7 | Accepted answer

It depends on the implementation. The network itself does not have a database engine. Bitcoin Core and software derived from it (most altcoin software is derived from Core) uses LevelDB to index the blockchain and store the chainstate data (UTXO set, current best block, etc.). It uses BerkeleyDB for the wallet.

However different implementations can use whatever database engine they want. For example, Armory uses LMDB for storing block indexes and other chainstate data.


---

