Skip to main content

An easy to use Python BSV client.

Project description

pybsv

PyPI version

Wrapping bitsv - https://github.com/AustEcon/bitsv

Description: An easy to use Python BSV library.

Install:

pip install pybsv

Usage:

from pybsv import PyBSVClient
# SUPPORTED_NETWORKS = [MAIN_NETWORK_TYPE, SCALING_NETWORK_TYPE, TEST_NETWORK_TYPE]
client = PyBSVClient('Your WIF Private Key Here', network=pybsv.TEST_NETWORK_TYPE)
# SUPPORTED_CURRENCIES = [BSV_CURRENCY_KEY, USD_CURRENCY_KEY]
client.get_balance(pybsv.BSV_CURRENCY_KEY)

from pybsv import PyBSVClient, BSV_CURRENCY_KEY, USD_CURRENCY_KEY, TEST_NETWORK_TYPE
# SUPPORTED_NETWORKS = [MAIN_NETWORK_TYPE, SCALING_NETWORK_TYPE, TEST_NETWORK_TYPE]
client = PyBSVClient('Your WIF Private Key Here', network=TEST_NETWORK_TYPE)
# SUPPORTED_CURRENCIES = [BSV_CURRENCY_KEY, USD_CURRENCY_KEY]
print(client.get_balance(BSV_CURRENCY_KEY))
print(client.get_address())
trans_id = client.send_bsv('Destination Wallet Address Here', 0.10, USD_CURRENCY_KEY) # Send $0.10 worth of BSV
print(trans_id)

Upload to PyPi:

python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*whl dist/*gz

*Do this from the root of this project.

Project details


Download files

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

Files for pybsv, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pybsv-0.0.5-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pybsv-0.0.5.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page