Skip to main content

lantern3.py

Light up the Ethereum blockchain with Lantern3, a Python library that provides high-level interfaces for sending bundled transactions to block builders. Lantern3 aims to increase the success rate of transaction inclusion while mitigating issues such as transaction reverts, front-running, back-running, and sandwich attacks.

Builders

Lantern3 supports multiple block builders that you can use to send your bundled transactions.

Name RPC Endpoint Notes
Flashbots https://relay.flashbots.net FlashbotsBuilder
builder0x69 https://builder0x69.io
beaverbuild https://rpc.beaverbuild.org
rsync-builder https://rsync-builder.xyz

Please refer to the documentation of each block builder for any specific requirements or considerations when using them.

Examples

To get started with Lantern3, you can explore the provided examples. The following example demonstrates a simple transfer of Ether:

$ python3 examples/simple_transfer.py <YOUR_PRIVATE_KEY>

Please note that before running the examples, you may need to install the necessary dependencies by following the installation instructions in the project's documentation.

Contributing

We welcome contributions to Lantern3! If you encounter any issues, have suggestions, or want to contribute improvements or new features, please open an issue or submit a pull request on the GitHub repository.

License

Lantern3 is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for lantern3 0.1.0

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

Source distribution (sdist)

Source distribution for lantern3 0.1.0
File Size Uploaded
lantern3-0.1.0.tar.gz 5.3 kB Details

Built distribution (wheel)

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

Total release size: 11.6 kB

Release files / lantern3-0.1.0.tar.gz

Download URL lantern3-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
06222bf79dc52a74cfcd8f90cc42c521ed3628ec13b68c6cf1dd7363da12c549
BLAKE2b-256 checksum
How to use checksums
7555d4a5e18595487a9aa4049604f19761b968eafea7fd4deea50cc9e867ed19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / lantern3-0.1.0-py3-none-any.whl

Download URL lantern3-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3c5bad9f8cf567c78de1374d819a77c2860c587f5f74da6cc753dd9d2515825
BLAKE2b-256 checksum
How to use checksums
db6605611b99911ca0e2ca684452dd606542174e2053127b74d039290e22c82d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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