Nimble Miner API
It provides CLI, wallet and other APIs for the miners.
Development
Install
# installer option
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nimble-technology/nimble-miner-api/master/scripts/install.sh)"
# pip install option
$ pip3 install nimble-miner-api
# from source
$ git clone https://github.com/nimble-technology/nimble-miner-api.git
$ cd nimble-miner-api
$ python3 -m pip install -e ./
# test install from command line
# usage: nbcli <command> <command args>
# commands:
# subnets (s, subnet) - Commands for managing and viewing subnetworks.
# root (r, roots) - Commands for managing and viewing the root network.
# wallet (w, wallets) - Commands for managing and viewing wallets.
# stake (st, stakes) - Commands for staking and removing stake from hotkey accounts.
# sudo (su, sudos) - Commands for subnet management.
# legacy (l) - Miscellaneous commands.
$ nbcli --help
# test install from python
import nimble-miner-api as nimble
# cuda dependency for cubit install - python 3.10 example
pip install https://github.com/nimble-technology/cubit/releases/download/v1.1.2/cubit-1.1.2-cp310-cp310-linux_x86_64.whl
Wallet
Each wallet has a coldkey. Each coldkey may contain multiple hotkeys and each hotkey belong to a single coldkey. Coldkeys are for secure fund management like transfer, staking, and fund storage. Hotkeys are for all online operations like signing, mining and validating.
# wallet creation in python
import nimble-miner-api as nimble
wallet = nimble.wallet()
wallet.create_new_coldkey()
wallet.create_new_hotkey()
# Sign data with the keypair.
wallet.coldkey.sign( data )
# use nbcli with wallet subcommand or alias w.
$ nbcli wallet new_coldkey
$ nbcli wallet new_hotkey
$ nbcli wallet regen_coldkey --mnemonic **** *** **** **** ***** **** *** **** **** **** ***** *****
# keys are available here: ~/.nimble/wallets
$ nbcli wallet list
# more commands
$ nbcli wallet list
$ nbcli wallet transfer
Release (Admin Only)
Run the following command to create dist folder
python setup.py sdist
Then use the following command to publish to pypi
twine upload dist/nimble-miner-api-{version}.tar.gz
Metadata
Release files for nimble-miner-api 0.0.20
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 |
|---|---|---|---|---|
| nimble-miner-api-0.0.20.tar.gz | 173.9 kB | Without provenance | Details for nimble-miner-api-0.0.20.tar.gz |
Release files / nimble-miner-api-0.0.20.tar.gz
| Download URL | nimble-miner-api-0.0.20.tar.gz |
|---|---|
| Size | 173.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eb5311fd67ca95aa18083d57c51c0ef6041be5cd87a9f8711ba7721dee77160
|
|
BLAKE2b-256 checksum How to use checksums |
b80f41347aa7468a3bfde47af20337f1e5029cc6b7f110fd5f1477788ad24fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for nimble-miner-api 0.0.20
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.