Skip to main content

A comprehensive toolkit for collecting, analyzing, filtering, and exporting blockchain transactions using Blockchair's database dumps.

Project description

Blockchain Transaction Collector

A comprehensive toolkit for collecting and analyzing blockchain transactions using Blockchair's database dumps.

Features

  • Collect blockchain transactions from Blockchair's data dumps
  • Filter transactions based on value, amount, and date range
  • Flexible collection intervals: daily, weekly, or random
  • Progress saving and resuming capabilities
  • Transaction analysis tools
  • Export data to CSV and JSON formats

Installation

You can install the Blockchain Transaction Collector using pip:

pip install blockchaintxcollector

Usage

Here's a quick example of how to use the BTC Transaction Collector:

from blockchaintxcollector import BTCTransactionCollector, TransactionFilter, IntervalType
from datetime import datetime

# Initialize the collector
collector = BTCTransactionCollector()

# Define the transaction filter
transaction_filter = TransactionFilter(
    min_usd_value=10000000, # Minimum transaction value in USD
    start_date=datetime(2018, 1, 1),
    end_date=datetime(2024, 6, 26)
)

# Collect transactions
collector.collect_transactions(transaction_filter, interval=IntervalType.WEEKLY)
# Analyze transactions

analysis, transactions = collector.analyze_transactions()
print(analysis)

# Export data
collector.export_analysis_to_json(analysis, "large_transactions_analysis.json")
collector.export_transactions_to_csv(transactions, "large_transactions.csv")
collector.export_transactions_to_json(transactions, "large_transactions.json")

Documentation

For full documentation, please refer to the docs directory.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blockchaintxtools-0.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blockchaintxtools-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file blockchaintxtools-0.1.1.tar.gz.

File metadata

  • Download URL: blockchaintxtools-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for blockchaintxtools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c976d795b64055a68e386df4dfe88fd054c99b19afefd4537e0e0faf21640391
MD5 db814d1c7284e6a033608be8942d8cb0
BLAKE2b-256 f7a1d9c748372f0022bd76e251c2318fdfe208dfe08b574b0bc3453a30aed310

See more details on using hashes here.

File details

Details for the file blockchaintxtools-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for blockchaintxtools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e31edf64009370099a70e623dad5b18280aad1378de8ce1f89482ce528acdc7f
MD5 bf6657fb683c4d7c600fff2d5827cc56
BLAKE2b-256 56658a0b46d208873e6c83b662c5673aa43322f4ea1934bfb83e0509dbc62ea4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page