All Projects → bitcoinjs → Fast Dat Parser

bitcoinjs / Fast Dat Parser

Licence: mit
Superfast blockchain parser for stats

Programming Languages

cplusplus
227 projects

Projects that are alternatives of or similar to Fast Dat Parser

The Journal Of Blockchain
区块链自媒体、专注区块链技术学习和实践、IPFS/Filecoin、Bitcoin、Ethereum、EOS、Cosmos、区块链、白皮书、Coinmarketcap、Coindesk、Safe Network、Telegram、Docker、社会治理、经济激励
Stars: ✭ 63 (-7.35%)
Mutual labels:  blockchain, bitcoin
Pycoinbin
Python Wrapper for coinbin.org
Stars: ✭ 43 (-36.76%)
Mutual labels:  blockchain, bitcoin
Arcbit Android
arcbit - Android bitcoin wallet http://arcbit.io
Stars: ✭ 34 (-50%)
Mutual labels:  blockchain, bitcoin
Blockchain Papers
区块链相关的有价值的文献
Stars: ✭ 20 (-70.59%)
Mutual labels:  blockchain, bitcoin
Udacity Blockchain Developer Nanodegree
The road so far on Udacity Blockchain Developer Nanodegree
Stars: ✭ 53 (-22.06%)
Mutual labels:  blockchain, bitcoin
Blockchain Py
A python imlementation of blockchain_go
Stars: ✭ 28 (-58.82%)
Mutual labels:  blockchain, bitcoin
Bitcoinml
Bitcoin data-structures library for OCaml
Stars: ✭ 38 (-44.12%)
Mutual labels:  blockchain, bitcoin
Token Core Ios
a blockchain private key management library on iOS
Stars: ✭ 850 (+1150%)
Mutual labels:  blockchain, bitcoin
Blkchain
Fast import of the blockchain into PostgreSQL.
Stars: ✭ 52 (-23.53%)
Mutual labels:  blockchain, bitcoin
Blockchainage
「区块链技术指北」相关资料。
Stars: ✭ 51 (-25%)
Mutual labels:  blockchain, bitcoin
Blocksci
A high-performance tool for blockchain science and exploration
Stars: ✭ 1,127 (+1557.35%)
Mutual labels:  blockchain, bitcoin
Bitcoin.org
Bitcoin.org Website
Stars: ✭ 1,090 (+1502.94%)
Mutual labels:  blockchain, bitcoin
Bluewallet
Bitcoin thin client for iOS & Android. Built with React Native
Stars: ✭ 878 (+1191.18%)
Mutual labels:  blockchain, bitcoin
Blockchain Anchor
A Node.js library for anchoring data onto the Bitcoin blockchain and confirming anchored data on Bitcoin and Ethereum.
Stars: ✭ 32 (-52.94%)
Mutual labels:  blockchain, bitcoin
Odyn
A prototype anonymous proof-of-work blockchain
Stars: ✭ 13 (-80.88%)
Mutual labels:  blockchain, bitcoin
Blockchain
区块链、交易所、币种、自媒体、高频交易策略
Stars: ✭ 37 (-45.59%)
Mutual labels:  blockchain, bitcoin
Multy Back
Back-end of the Multy - mobile multy-blockchain wallet.
Stars: ✭ 26 (-61.76%)
Mutual labels:  blockchain, bitcoin
Awesome Blockchain
⚡️Curated list of resources for the development and applications of blockchain.
Stars: ✭ 937 (+1277.94%)
Mutual labels:  blockchain, bitcoin
Exonum
An extensible open-source framework for creating private/permissioned blockchain applications
Stars: ✭ 1,037 (+1425%)
Mutual labels:  blockchain, bitcoin
Cryptolights
Live visualisation of blockchain transactions for popular cryptocurrencies
Stars: ✭ 54 (-20.59%)
Mutual labels:  blockchain, bitcoin

fast-dat-parser

Parses the blockchain about as fast as your IO can pipe it out. For a typical SSD, this can be around ~450 MiB/s.

All memory is allocated up front.

Output goes to stdout, stderr is used for logging.

WARNING: Not actively maintained, use with caution.

Usage

A fast blk*.dat parser for bitcoin blockchain analysis.

  • -j<THREADS> - N threads for parallel computation (default 1)
  • -m<BYTES> - memory usage (default 209715200 bytes, ~200 MiB)
  • -t<INDEX> - transform function (default 0, see pre-packaged transforms below)
  • -w<FILENAME> - whitelist file, for omitting blocks from parsing

Important to note is that the implementation skips bitcoind allocated zero-byte gaps, and includes orphan blocks unless -w omits them.

Transforms (-t)

Each of these pre-included functions write their output as raw data (binary, not hex). You can easily write your own though!

  • 0 - Outputs the unordered 80-byte block headers
  • 1 - Outputs every script prefixed with a uint16_t length
  • 2 - Displays the number of transaction inputs, outputs and number of transactions in the blockchain
  • 3 - Outputs HEIGHT | VALUE for each output, typically used for showing output balances over time

Use a whitelist (see -w) to stop orphan blocks from being parsed. (see below for filtering by best chain)

Examples

Output all scripts for the local-best blockchain

# parse the local-best blockchain
cat ~/.bitcoin/blocks/blk*.dat | ./parser -t0 | ./bestchain > chain.dat

# output every script found in the local-best blockchain
cat ~/.bitcoin/blocks/blk*.dat | ./parser -j4 -t1 -wchain.dat > ~/.bitcoin/scripts.dat

Useful tools

These tools are for the CLI, but will aid in preparing/using data produced by the above.

bestchain

A best-chain filter for block headers.

Accepts 80-byte block headers until EOF, then finds the best-chain in the set, and outputs the best-chain in the form of a sorted hash map (see HMap<K, V>).

LICENSE MIT

The constants and getOpString function in include/bitcoin-ops.hpp is copied from https://github.com/bitcoin/bitcoin/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].