Skip to main content

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

  1. Add "bsv_integration" to your INSTALLED_APPS:
INSTALLED_APPS = [
    ...
    'bsv_integration',
]
  1. Run migrations:
python manage.py migrate bsv_integration
  1. 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


Download files

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

Source Distribution

django_bsv_integration-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

django_bsv_integration-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for django_bsv_integration-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a896871f216ec261e0720e6d6e2ed9e28e635011cb7d937522b956958cc4d60e
MD5 3cddb6e9af81091040c4d01e0e021769
BLAKE2b-256 92a79c4c3daa0bd3eeeccdbe4c3cc3931cebba3e8d5f5310fa6c453c879328dc

See more details on using hashes here.

File details

Details for the file django_bsv_integration-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_bsv_integration-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f64d4092409042e0cb3e9e4d779035cfc24c72c925424660db1a937b101734c
MD5 f028ae5aa9609f0a64d1b45f2ebdc019
BLAKE2b-256 c07467c8414207f10510dda43b4b5ef044ea0e7792c2986bdb1c7acca8a2b2ca

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