Pyblockchain
⛓ Blockchain parser for Python
Install / Use
/learn @ediskandarov-cur/PyblockchainREADME
============ pyblockchain
.. image:: https://img.shields.io/pypi/v/pyblockchain.svg :target: http://pypi.python.org/pypi/pyblockchain .. image:: https://travis-ci.org/toidi/pyblockchain.svg?branch=master :target: https://travis-ci.org/toidi/pyblockchain
pyblockchain is a Python library for parsing blockchain data
Installation
::
pip install pyblockchain
Usage
.. code-block:: python
from blockchain.reader import BlockchainFileReader
block_reader = BlockchainFileReader('tests/1M.dat')
for block in block_reader: print('magic number', block.header.magic_number_hex)
Useful links
Bitcoin Developer Guide_Bitcoin Developer Reference_Block Parser for Bitcoin_How to Program Block Chain Explorers with Python_Genesis block_Transaction_Technical background of version 1 Bitcoin addresses_Block hashing algorithm_Blockchain.info Block #0_Script opcodes_Parsing the Bitcoin Blockchain_
.. _Block Parser for Bitcoin: https://github.com/tenthirtyone/blocktools .. _How to Program Block Chain Explorers with Python: http://alexgorale.com/how-to-program-block-chain-explorers-with-python-part-1 .. _Genesis block: https://en.bitcoin.it/wiki/Genesis_block .. _Transaction: https://en.bitcoin.it/wiki/Transaction .. _Block hashing algorithm : https://en.bitcoin.it/wiki/Block_hashing_algorithm .. _Blockchain.info Block #0: https://blockchain.info/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f .. _Bitcoin Developer Guide: https://bitcoin.org/en/developer-guide .. _Bitcoin Developer Reference: https://bitcoin.org/en/developer-reference .. _script opcodes: https://github.com/bitcoin/bitcoin/blob/0.12/src/script/script.h .. _Technical background of version 1 Bitcoin addresses: https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses .. _Parsing the Bitcoin Blockchain: http://blog.gebhartom.com/posts/Parsing%20the%20Bitcoin%20Blockchain
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
