The Jito JSON-RPC Python SDK provides an interface for interacting with Jito's enhanced Solana infrastructure. This SDK supports methods for managing bundles and transactions, offering improved performance and additional features while interacting with the Block Engine.
get_inflight_bundle_statuses
: Retrieve the status of in-flight bundles.get_bundle_statuses
: Fetch the statuses of submitted bundles.get_tip_accounts
: Get accounts eligible for tips.send_bundle
: Submit bundles to the Jito Block Engine.
send_transaction
: Submit transactions with enhanced priority and speed.
This project requires Python 3.8 or higher. If you haven't installed Python yet, follow these steps:
-
Install Python: Download and install Python from python.org
-
Verify the installation:
python --version
-
(Optional but recommended) Set up a virtual environment:
python -m venv jito-env source jito-env/bin/activate # On Windows use `jito-env\Scripts\activate`
Install the SDK using pip:
pip install jito-py-rpc
To run the basic transaction example:
-
Ensure your environment is set up in
basic_txn.py
:# Load the sender's keypair wallet_path = "/path/to/wallet.json" # Set up receiver pubkey receiver = Pubkey.from_string("YOUR_RECEIVER_KEY")
-
Run the example:
python basic_txn.py
To run the basic bundle example:
-
Ensure your environment is set up in
basic_bundle.py
:# Load the sender's keypair wallet_path = "/path/to/wallet.json" # Set up receiver pubkey receiver = Pubkey.from_string("YOUR_RECEIVER_KEY")
-
Run the example:
python basic_bundle.py
Contributions are welcome! Please feel free to submit a Pull Request.
For support, please join our Discord community.