Skip to main content

About

This library contains tooling to interact with Jito Lab's Block Engine as a searcher.

Downloading

$ pip install jito_searcher_client

Keypair Authentication

Basic access(5 req/second per region) no longer requires approval. Please visit our Discord dev channel, if you have other questions. If your application requires higher rate limits, please complete this form

Examples

Sync Client

from jito_searcher_client import get_searcher_client
from jito_searcher_client.generated.searcher_pb2 import ConnectedLeadersRequest

from solders.keypair import Keypair

BLOCK_ENGINE_URL = "nyc.testnet.block-engine.jito.wtf"

kp = None
client = get_searcher_client(BLOCK_ENGINE_URL, kp)
leaders = client.GetConnectedLeaders(ConnectedLeadersRequest())
print(f"{leaders=}")

Async Client

import asyncio

from jito_searcher_client import get_async_searcher_client
from jito_searcher_client.generated.searcher_pb2 import ConnectedLeadersRequest

from solders.keypair import Keypair

KEYPAIR_PATH = "/path/to/authenticated/keypair.json"
BLOCK_ENGINE_URL = "frankfurt.mainnet.block-engine.jito.wtf"

async def main():
    with open(KEYPAIR_PATH) as kp_path:
        kp = Keypair.from_json(kp_path.read())
    client = await get_async_searcher_client(BLOCK_ENGINE_URL, kp)
    leaders = await client.GetConnectedLeaders(ConnectedLeadersRequest())
    print(f"{leaders=}")

asyncio.run(main())

Development

Install pip

$ curl -sSL https://bootstrap.pypa.io/get-pip.py | python 3 -

Install poetry

$ curl -sSL https://install.python-poetry.org | python3 -

Setup environment and build protobufs

$ poetry install
$ poetry shell
$ poetry protoc

Linting

$ poetry run black .
$ poetry run isort .

Linting:

poetry run isort .
poetry run black .

Publishing package

$ poetry protoc && poetry build && poetry publish

Metadata

Release files for jito_searcher_client_no_auth 0.1.9

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_searcher_client_no_auth 0.1.9
File Size Uploaded Provenance Actions
jito_searcher_client_no_auth-0.1.9.tar.gz 24.8 kB Without provenance Details for jito_searcher_client_no_auth-0.1.9.tar.gz

Built distribution (wheel)

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

Total release size: 68.2 kB

Release files / jito_searcher_client_no_auth-0.1.9.tar.gz

Download URL jito_searcher_client_no_auth-0.1.9.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4fc5e770f93fe869148a41601ff6f358ecebcdd27ba8cbbf756866b3fd6c343e
BLAKE2b-256 checksum
How to use checksums
c8fa0c3f3572c51f0f80ce9c0245ff57caca1f074b93c9eb7e44c9ebe77dc3e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0

Release files / jito_searcher_client_no_auth-0.1.9-py3-none-any.whl

Download URL jito_searcher_client_no_auth-0.1.9-py3-none-any.whl
Size 43.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d61aa4fba62262ce851117798da7e514a53e156b7b37fe02677f9be24b4baab7
BLAKE2b-256 checksum
How to use checksums
7909dcd74c8865de4b4ffe3aa0b43131e606f7ff40327a1906805062ed6aad21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0

Security for jito_searcher_client_no_auth 0.1.9

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