Lexe Python SDK
The Lexe Python SDK provides a Python interface for developers to control self-custodial, always-online Lexe Lightning nodes.
pip install lexe-sdk
Create a wallet
from lexe import Credentials, LexeWallet, RootSeed, WalletConfig
# Configure `mainnet()` or `testnet3()`
config = WalletConfig.mainnet()
# Sample a new seed and write it to ~/.lexe/seedphrase.txt
seed = RootSeed.generate()
seed.write(config)
# Create wallet and register with Lexe (data stored in ~/.lexe)
creds = Credentials.from_root_seed(seed)
wallet = LexeWallet.fresh(config, creds)
wallet.signup(root_seed=seed, partner_pk=None)
# Create a Lightning invoice
invoice = wallet.create_invoice(
expiration_secs=3600,
amount_sats=1000,
description="Initial deposit",
)
print(f"Invoice: {invoice.invoice}")
# Wait for payment
payment = wallet.wait_for_payment(index=invoice.index, timeout_secs=300)
print(f"Payment received: {payment.amount_sats} sats")
Load an existing wallet
from lexe import Credentials, LexeWallet, RootSeed, WalletConfig
# Load existing wallet from ~/.lexe
config = WalletConfig.mainnet()
seed = RootSeed.read(config)
creds = Credentials.from_root_seed(seed)
wallet = LexeWallet.load(config, creds)
# Update to the latest node software
wallet.provision(creds)
# Pay a Lightning invoice
payment = wallet.pay_invoice(
invoice="lnbc...",
fallback_amount_sats=None,
personal_note="Paying for coffee",
)
payment = wallet.wait_for_payment(index=payment.index, timeout_secs=15)
print(f"Payment: {payment.status}")
Metadata
Release files for lexe-sdk 0.1.22
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 |
|---|---|---|---|---|
| lexe_sdk-0.1.22.tar.gz | 645.8 kB | With provenance | Details for lexe_sdk-0.1.22.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| lexe_sdk-0.1.22-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for lexe_sdk-0.1.22-py3-none-win_amd64.whl |
| lexe_sdk-0.1.22-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for lexe_sdk-0.1.22-py3-none-manylinux_2_28_aarch64.whl |
| lexe_sdk-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for lexe_sdk-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| lexe_sdk-0.1.22-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for lexe_sdk-0.1.22-py3-none-macosx_11_0_arm64.whl |
Total release size: 25.8 MB
Release files / lexe_sdk-0.1.22.tar.gz
| Download URL | lexe_sdk-0.1.22.tar.gz |
|---|---|
| Size | 645.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
024c7836e60bd34193bc761a007356ef0cd12c8dc81912c01b9ddd027c5c958b
|
|
BLAKE2b-256 checksum How to use checksums |
87d82ae71ca087eaf35226de6a67baa1c9fe2466202adc4578dc6caf4e73de9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / lexe_sdk-0.1.22-py3-none-win_amd64.whl
| Download URL | lexe_sdk-0.1.22-py3-none-win_amd64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d94c8706a0631eccb8117305fcca74cfa60b9fd092976bb0b4aa5e82cfb6d81f
|
|
BLAKE2b-256 checksum How to use checksums |
cf43ce795412d9fa8188684896719049200862b4893a7ec4fde6bc04cc45f13c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / lexe_sdk-0.1.22-py3-none-manylinux_2_28_aarch64.whl
| Download URL | lexe_sdk-0.1.22-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
ecb988c2797e37d758e0c98b9b568ef4ff6e777e1a8eb6c74af2f03311ebef5d
|
|
BLAKE2b-256 checksum How to use checksums |
7a6ef27915a8012f096068897f5cfaeee754df2e17d0cecc657e77494ecc9d0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / lexe_sdk-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | lexe_sdk-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
622f9c430715e8e7e9539c2189a45f99b49a2717fc8e8d85ae349ba3ad7a20dd
|
|
BLAKE2b-256 checksum How to use checksums |
ca2b2db98aeeaeed540aa3b487d51a28240201e276ca776df38b28d8d9436901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / lexe_sdk-0.1.22-py3-none-macosx_11_0_arm64.whl
| Download URL | lexe_sdk-0.1.22-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
382f42a63e4ba355fe58e6b42424347c94fc69165d06d954f1845e0ef22f669f
|
|
BLAKE2b-256 checksum How to use checksums |
fa778b404d57f2097fadfe6424a0d0dd5d2b952be444e2fcd1285aae7e31d427
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logSecurity for lexe-sdk 0.1.22
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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for lexe_sdk-0.1.22.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logA 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.