Skip to main content

Control Lexe self-custody Bitcoin wallets with the Lexe Python SDK

Project description

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

Example

import lexe

# Load an existing Lexe wallet from ~/.lexe
config = lexe.WalletEnvConfig.mainnet()
seed = config.read_seed()
wallet = lexe.LexeWallet.load(config, seed)

# Pay a Lightning invoice
payment = wallet.pay_invoice(
    invoice="lnbc...",
    fallback_amount_sats=None,
    note="Paying for coffee",
)
payment = wallet.wait_for_payment(
    index=payment.index,
    timeout_secs=15,
)
print(f"payment: {payment.status}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lexe_sdk-0.0.0rc0.tar.gz (473.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lexe_sdk-0.0.0rc0-py3-none-win_amd64.whl (4.4 MB view details)

Uploaded Python 3Windows x86-64

lexe_sdk-0.0.0rc0-py3-none-manylinux_2_28_aarch64.whl (5.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

lexe_sdk-0.0.0rc0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

lexe_sdk-0.0.0rc0-py3-none-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file lexe_sdk-0.0.0rc0.tar.gz.

File metadata

  • Download URL: lexe_sdk-0.0.0rc0.tar.gz
  • Upload date:
  • Size: 473.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lexe_sdk-0.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 c3e50d4cea2f9b52df374425d5f57dbe38b1ac55af4627bde7774ee51afe28cf
MD5 34853c96ebea272f7d176598d62a0bc0
BLAKE2b-256 cb5344234eab4972a061589a4b09e9bcf5164895395238566a106fbdf9fa266b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexe_sdk-0.0.0rc0.tar.gz:

Publisher: release-sdk-python.yml on lexe-app/lexe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lexe_sdk-0.0.0rc0-py3-none-win_amd64.whl.

File metadata

  • Download URL: lexe_sdk-0.0.0rc0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lexe_sdk-0.0.0rc0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ad7a82a835327d167096115a16b75dc50297f1552c5b7e3cd2125071d6bcf030
MD5 87bc0dd665b1c52f9590a99c38162bf5
BLAKE2b-256 efaa937f3b82538daed0d333a3681f401c6f9f8c77bec10f87c55eae45ba8704

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexe_sdk-0.0.0rc0-py3-none-win_amd64.whl:

Publisher: release-sdk-python.yml on lexe-app/lexe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lexe_sdk-0.0.0rc0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lexe_sdk-0.0.0rc0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 90db00e2d0dc41e141a93d29d3f155ddb1f0deea2cf7c16ed0efca9d1fd31b68
MD5 ac59b50c45791e37987d752bc25ba3c3
BLAKE2b-256 8bd0438e90e1ed124cfd3f2b7eedc2dbfb11fbb753f650dbea8e9ef26032b189

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexe_sdk-0.0.0rc0-py3-none-manylinux_2_28_aarch64.whl:

Publisher: release-sdk-python.yml on lexe-app/lexe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lexe_sdk-0.0.0rc0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lexe_sdk-0.0.0rc0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e71f344291e26156cacd96ce956c5ceac9804c9b534eafb59c64f80691950061
MD5 70547df3145811d50ca1cc0af7b3d128
BLAKE2b-256 0555df6d63915dec56d3b572eb4d9e665ffa58b434f694cb484ef0f350a7dc8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexe_sdk-0.0.0rc0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-sdk-python.yml on lexe-app/lexe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lexe_sdk-0.0.0rc0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lexe_sdk-0.0.0rc0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83b9c68c88a5dff5db454bf39be69ccfb7b6b080de8b370c09d1accba367ad0f
MD5 ca88b772d4b7c0b4eade2d2385436762
BLAKE2b-256 c8a869bcc719285b9021d59f2197651603e578080ff45679af09acc54307c3e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexe_sdk-0.0.0rc0-py3-none-macosx_11_0_arm64.whl:

Publisher: release-sdk-python.yml on lexe-app/lexe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page