Skip to main content

jito-py

jito-py is a Python library for interacting with the Jito via JSON-RPC.

Installation

pip install jito_py

Usage

1.Gets the block engine url

You can access the block engine information using the interface below

from jito_py.block_engine import BlockEngine

engines = BlockEngine.get_block_engines(network='mainnet')
for k, v in engines.items():
    print(k)
    print(v['block_engine_url'])

You can get the address of the block engine from jito's website

2.Interact with Jito as a searcher

from jito_py.searcher import Searcher

# Create a searcher instance  
block_engine_url = "https://ny.mainnet.block-engine.jito.wtf"
searcher = Searcher(block_engine_url)

# Get tip accounts  
tip_accounts = searcher.get_tip_accounts()
print("Tip Accounts:", tip_accounts)

# Get what tip amount to use
# Directly access which Percentile Jito Fee to use for your transaction in lamports
tip_floors = searcher.get_tip_floors()
print(f"Avg Jito Tip in Lamports for Top 99 Percentile Landed Txns: "
      f"{tip_floors.landed_tips_lamports_99th_percentile}")

# Get bundle statuses  
bundle_ids = ["your_bundle_id_here"]
bundle_statuses = searcher.get_bundle_statuses(bundle_ids)
print("Bundle Statuses:", bundle_statuses)

# Send a bundle  
transactions = ["your_base58_encoded_transaction_here"]
bundle_id = searcher.send_bundle(transactions)
print("Sent Bundle ID:", bundle_id)

# Send a transaction  
transaction = "your_base58_encoded_transaction_here"
transaction_id = searcher.send_transaction(transaction)
print("Sent Transaction ID:", transaction_id)

License

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

Metadata

Release files for jito-py 0.1.4

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

Source distribution (sdist)

Source distribution for jito-py 0.1.4
File Size Uploaded Provenance
jito_py-0.1.4.tar.gz 8.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jito-py 0.1.4
File Interpreter ABI Platform
jito_py-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / jito_py-0.1.4.tar.gz

Download URL jito_py-0.1.4.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c8c2e1a0092292012c364095aabe44c42813e5497c1919f7b510a46272ba65ff
BLAKE2b-256 checksum
How to use checksums
0263effd10a99f58029a779785389f5fac46a90294032c4d382640cc7a23b44b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / jito_py-0.1.4-py3-none-any.whl

Download URL jito_py-0.1.4-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cf62ee6867439e19295c6844d2eca34a098cd654c93998d1008c4e6f705e0b0
BLAKE2b-256 checksum
How to use checksums
3fb157e70a148f485250510494b81804490a3550beb17d97c2f9c7ea53b4d2c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for jito-py 0.1.4

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.

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