Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 124452

LevelDB is an embedded key-value storage developed by Google that is used in Bitcoin Core for block index storage and quick access to the UTXO set (unspent transaction outputs).

1 vote

Python - Querying bitcoin's block header using leveldb

Here is a simple script to access the entire leveldb block index. import re from plyvel import DB # Note for POSIX users, typically we have to escape spaces, # e.g. "Application\ Support". … To get the leveldb key from a bigendian hex blockid, you could do the following: >>> hex_data = "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" >>> test_key = b"b" + bytes.fromhex(hex_data …
Cal Abel's user avatar