No project description provided
Project description
LndHub
With lndhub
you can interact with wallets that provide a LndHub URL like BlueWallet or lntxbot.
This library is still in pre-alpha and it can change a lot. The idea is to be able to interact
with all API endpoints defined in the BlueWallet/LndHub
documentation:
-
...
:/create
-
...
:/oauth2/token
-
Wallet.authenticate()
:/auth
-
Wallet.get_info()
:/getinfo
-
Wallet.get_balance()
:/balance
-
Wallet.get_transactions()
:/gettxs
-
Wallet.get_transaction(id)
:/gettx
-
Wallet.get_pending_transactions()
:/getpending
-
Wallet.get_invoices()
:/getuserinvoices
-
Wallet.create_invoice(amount, description)
:/addinvoice
-
Wallet.decode_invoice(bolt11)
:/decodeinvoice
-
...
:/checkrouteinvoice
at the momment does nothing. -
Wallet.pay_invoice(bolt11)
:/payinvoice
-
...
:/sendcoins
-
Wallet.get_btc_addresses()
:/getbtc
-
Wallet.create_btc_address()
:/newbtc
Basic usage
import os
from lndhub import Wallet
wallet = Wallet(os.environ['LNDHUB_WALLET']) # lndhub://user:pass@https://endpoint.com
balance = wallet.get_balance()
invoice = wallet.create_invoice(amount=200, description='Thanks!')
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
lndhub-0.0.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file lndhub-0.0.2.tar.gz
.
File metadata
- Download URL: lndhub-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b456579f0660dd41af0664e0f19816f1e5584c67b58f93f72efa8012d92849 |
|
MD5 | 1cc9993579f9903f6dd92d1cdbd3b4c7 |
|
BLAKE2b-256 | c3ad7af6b63e6fb9d330d26ed131ca7ca64e63d8ceec44f61215c3296b089a40 |
File details
Details for the file lndhub-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: lndhub-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cea5dfeb29c9501c920e5198ea814d24b3a8390b4c4803c871c4d20b7357d22 |
|
MD5 | 756a234a868bcbc204ddc728f8f39d57 |
|
BLAKE2b-256 | 70a4e04ed65af72db324b4e1d7b36d67509ad3a9d5d9b8f6d7a0988edbd33863 |