Skip to main content

LndHub

travis-badge codecov-badge pypi-badge license-badge

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!')

Metadata

Release files for lndhub 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lndhub 0.0.2
File Size Uploaded Provenance
lndhub-0.0.2.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lndhub 0.0.2
File Interpreter ABI Platform
lndhub-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / lndhub-0.0.2.tar.gz

Download URL lndhub-0.0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e9b456579f0660dd41af0664e0f19816f1e5584c67b58f93f72efa8012d92849
BLAKE2b-256 checksum
How to use checksums
c3ad7af6b63e6fb9d330d26ed131ca7ca64e63d8ceec44f61215c3296b089a40
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lndhub-0.0.2-py3-none-any.whl

Download URL lndhub-0.0.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cea5dfeb29c9501c920e5198ea814d24b3a8390b4c4803c871c4d20b7357d22
BLAKE2b-256 checksum
How to use checksums
70a4e04ed65af72db324b4e1d7b36d67509ad3a9d5d9b8f6d7a0988edbd33863
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for lndhub 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page