Django integration for BSV blockchain using py-bsv SDK
Project description
Django BSV Integration
A Django package for Bitcoin SV (BSV) blockchain integration using the py-bsv SDK.
Features
- BSV wallet management with Django models
- Transaction creation and broadcasting
- 1sat ordinal support
- Image processing for blockchain storage
- UTXO management
- Integration with WhatsOnChain and GorillaPool APIs
Installation
pip install django-bsv-integration
Quick Start
- Add "bsv_integration" to your INSTALLED_APPS:
INSTALLED_APPS = [
...
'bsv_integration',
]
- Run migrations:
python manage.py migrate bsv_integration
- Create a BSV wallet:
from bsv_integration.models import BSVWallet
# Create wallet
wallet = BSVWallet.objects.create(
user=request.user,
name="My BSV Wallet",
# ... other fields
)
# Send transaction
result = await wallet.send_transaction(
recipient_address="1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
amount=1000, # satoshis
op_return_message="Hello BSV!"
)
Requirements
- Django 3.2+
- Python 3.8+
- py-bsv SDK
- aiohttp for async operations
License
MIT License
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 django_bsv_integration-0.1.0.tar.gz.
File metadata
- Download URL: django_bsv_integration-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a896871f216ec261e0720e6d6e2ed9e28e635011cb7d937522b956958cc4d60e
|
|
| MD5 |
3cddb6e9af81091040c4d01e0e021769
|
|
| BLAKE2b-256 |
92a79c4c3daa0bd3eeeccdbe4c3cc3931cebba3e8d5f5310fa6c453c879328dc
|
File details
Details for the file django_bsv_integration-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_bsv_integration-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f64d4092409042e0cb3e9e4d779035cfc24c72c925424660db1a937b101734c
|
|
| MD5 |
f028ae5aa9609f0a64d1b45f2ebdc019
|
|
| BLAKE2b-256 |
c07467c8414207f10510dda43b4b5ef044ea0e7792c2986bdb1c7acca8a2b2ca
|