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
jito_searcher_client_no_auth-0.1.9.tar.gz 24.8 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

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