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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blockchaintxtools-0.1.0.tar.gz.
File metadata
- Download URL: blockchaintxtools-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f02a517304d12613549b43afc9a1ab324c3a80f0104c309380f79ad89208c07
|
|
| MD5 |
44bf7150ec5ce7ec7121bea3a5352c7e
|
|
| BLAKE2b-256 |
6ec30d18f2f22b0c1c937f9f0f8dcc654a75c99d0485e3da648969e03a756609
|
File details
Details for the file blockchaintxtools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blockchaintxtools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6850b7d0a92266d0b17ef464d13b55ed4ebe8945599aa4c646b7e623f99870
|
|
| MD5 |
5593293a506b57a368d6c96433bc9902
|
|
| BLAKE2b-256 |
917efffa19ba76b84ccd4e4d8601ddadd781ead27de1ebc24ee0c067bb14ebe2
|