lantern3

Light up the Ethereum blockchain


Keywords
ethereum
License
MIT
Install
pip install lantern3==0.1.0

Documentation

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.