Linked Questions

1
vote
0answers
72 views

What is the format of the databases that are used in the core bitcoin client? [duplicate]

This question tells what each of the files in the bitcoin directory are, but it doesn't explain the structure of the databases used. What is the table structure (columns, data type, etc) for each of ...
21
votes
1answer
9k views

How does Bitcoin read from/write to LevelDB

I know that Bitcoin Core uses LevelDB since 0.8 version. However, I couldn't find detailed explanation about how Bitcoin stores and retrieves from LevelDB. E.g. If B transaction uses an output from ...
5
votes
1answer
3k views

How get raw block data?

I can use getblock json rpc method to get parsed block, but I need raw data. Is there any way to get raw block data using bitcoin core?
6
votes
1answer
2k views

How block explorer technology works?

If you click on random wallet at block explorer you get an instant info of all the transactions, balance etc etc. My question is, how their technology works exactly? Do they transform blk????.dat ...
7
votes
1answer
2k views

Where can I query the UTXO database?

Currently there are 35 million unspent transaction outputs. Is there a site somewhere where I can query this data to see, for instance, how many UTXO's exist with a value less than 20,000 satoshis? Or ...
4
votes
2answers
1k views

Format of a block key's contents in bitcoind's LevelDB?

I am trying to use bitcoind's LevelDB block index files (that are stored in blocks/index) to find the file (e.g. blk00029.dat) and byte position of specfic blocks. Thanks to questions What is the ...
4
votes
1answer
2k views

How can I read chainstate database?

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, but I'm wondering if I can just do a read ...
1
vote
4answers
921 views

How is data in a blockchain stored? Structure of block and blockchain

I'm trying to build a blockchain-based application and I have a problem with understanding some crucial issues. What exactly is a block? I mean, I've seen application where blocks were just String ...
1
vote
2answers
1k views

How is blockchain stored on disk?

Hi how is blockchain actually stored on disk? I noticed bitcoin uses key store database level DB but what is the structure? https://github.com/bitcoin-core/leveldb-old/blob/bitcoin-fork/doc/...
3
votes
1answer
804 views

Trying to understand how bitcore-node stores the data in the DB

I'm looking into the data and source of bitcore-node ( http://bitcore.io/ ), I'm a bit confused how all the information is stored in the database, probably it's in a similar way to others block ...
1
vote
1answer
578 views

How exactly do I decode the block file info in leveldb?

Base on the links https://github.com/bitcoin/bitcoin/blob/fcbc8bfa6d10cac4f16699d6e6e68fb6eb98acd0/src/main.h#L392 and What are the keys used in the blockchain levelDB (ie what are the key:value ...
1
vote
1answer
531 views

Bitcoin block index synchronization

What is the work done by the bitcoin core client during the initialization process? Is the block index created locally or downloaded at other partner nodes?
1
vote
1answer
379 views

How can I extract the values of all UTXO for a specific section of the blockchain?

I'm working on some statistics concerning the distribution of the UTXO set. I'm especially interested in the values of the UTXO, and would perhaps like to limit extraction to certain sections of the ...
1
vote
2answers
357 views

Python - Querying bitcoin's block header using leveldb

I am facing a stupid problem. I am trying to read bitcoin/blocks/index leveldb using plyvel. I've set up a regtest and i know there is a block with the hash : ...
1
vote
1answer
259 views

Bitcoin resistance against forged slow chain

I'm implementing a new protocol with a custom blockchain, and I'm trying to figure out what is the correct way to deal with the "slow chain" problem. In the Bitcoin protocol, nodes constantly gossip ...

15 30 50 per page