nanohelp
Business logic to abstract the raw nano node RPC logic
Documentation
https://nanohelp.readthedocs.io/en/latest/
Installation
pip install nanohelp
Usage
from nanohelp.secret import SecretManager
from nanohelp.wallet import WalletManager
# Initialize a SecretManager
secret_manager = SecretManager()
# Initialize a WalletManager, passing in the secret manager
wallet_manager = WalletManager(secret_manager)
# Define user and project details
user1 = "user1"
user2 = "user2"
project_id = "my-project"
# Create a new wallet for User1, this also generates and stores a new private key
wallet_id_user1, account_address_user1 = wallet_manager.create_wallet(user1)
# Create a new wallet for User2
wallet_id_user2, account_address_user2 = wallet_manager.create_wallet(user2)
# Transaction from User1's account to User2's account
amount = 1000 # amount of Nano to be sent
transaction_block = wallet_manager.make_transaction(
wallet_id_user1,
account_address_user1,
account_address_user2,
amount,
secret_manager.get_private_key(project_id, user1)
)
# Print transaction block
print(f"Transaction block: {transaction_block}")
Metadata
Release files for nanohelp 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nanohelp-0.1.13.tar.gz | 4.8 kB | Without provenance | Details for nanohelp-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanohelp-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for nanohelp-0.1.13-py3-none-any.whl |
Total release size: 10.8 kB
Release files / nanohelp-0.1.13.tar.gz
| Download URL | nanohelp-0.1.13.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ee369e48607b2d4d0a46365f873e19ae4dd1db0f18b565f20e54e7dbde990be
|
|
BLAKE2b-256 checksum How to use checksums |
48be4595c728b19db73af611fd4552d731b7e3cacd63d3e5a4a8768e9414c7b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / nanohelp-0.1.13-py3-none-any.whl
| Download URL | nanohelp-0.1.13-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d83017e0773396367bf62b97384ebfcfbb75d6917b6d522d1d5ff686286fb77
|
|
BLAKE2b-256 checksum How to use checksums |
e92d1a90ab9dce76d1b1823986b0c2581133e91d333e1661b11d91a6cbc54635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for nanohelp 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.