Official python lib for interacting with the Helium blockchain
Project description
helium-py
Versioning
This project follows semantic versioning. Prior to 1.0.0 this project does not guarantee a stable public API.
Modules
API
The API module classes provide client classes for interacting with the Helium APIs.
For full API specification and documentation please reference docs.helium.com.
from datetime import datetime, timedelta
from helium_py.api import ChainVariables, Hotspots
# Example of fetching chain variables
chain_vars = ChainVariables() # Create a ChainVariables client
print(chain_vars.get_all()) # Get all chain variables
# Example of fetching hotspot earnings for the last five days
hotspot_address = "some_valid_hotspot_address"
hotspots = Hotspots()
hotspots.get_hotspot_rewards_total(hotspot_address, min_time=datetime.now() - timedelta(days=5))
Crypto
The Crypto module classes provide Address, Keypair, and Mnemonic classes as well as helpful utilities.
from helium_py.crypto.keypair import Keypair
# Example of creating a random keypair, accessing the address, and signing a message
keypair = Keypair.make_random()
address = keypair.address.b58 # B58 public key address
keypair.sign(b'message') # Sign a message with keypair private key
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 helium-py-0.2a2.tar.gz.
File metadata
- Download URL: helium-py-0.2a2.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ae56b05d954ce32d3c27c0838e8a400966d55e85bcd2ba0c25d6f4b9ba674e9
|
|
| MD5 |
b7dbf4b757c524ebd28f1ecbab7eae00
|
|
| BLAKE2b-256 |
25146cfc359ab91a7c6e1d2f28ed9b2f96593d72fbb09ca141013e253500e8f8
|
File details
Details for the file helium_py-0.2a2-py3-none-any.whl.
File metadata
- Download URL: helium_py-0.2a2-py3-none-any.whl
- Upload date:
- Size: 60.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b1a0b45b0bb9b616ccf60f40433ac13197d39a1cba5582a296dd7ba5e9a158
|
|
| MD5 |
24c184dd1b23bc43b61f94170b7ed4db
|
|
| BLAKE2b-256 |
d4568acb8c37a1b0e0bfb18b539d03067c03e311aeac8156ac0b94c4e776f8ae
|