Skip to main content

No project description provided

Project description

jito-sdk-python

Discord Python PyPI Documentation

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.

Features

Bundles

  • 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.

Transactions

  • send_transaction: Submit transactions with enhanced priority and speed.

Installation

Prerequisites

This project requires Python 3.8 or higher. If you haven't installed Python yet, follow these steps:

  1. Install Python: Download and install Python from python.org

  2. Verify the installation:

    python --version
    
  3. (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`
    

Installing jito-sdk-python

Install the SDK using pip:

pip install jito-sdk-python

Usage Examples

Basic Transaction Example

To run the basic transaction example:

  1. 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")
    
  2. Run the example:

    python basic_txn.py
    

Basic Bundle Example

To run the basic bundle example:

  1. 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")
    
  2. Run the example:

    python basic_bundle.py
    

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For support, please join our Discord community.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jito_py_rpc-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

jito_py_rpc-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file jito_py_rpc-0.1.0.tar.gz.

File metadata

  • Download URL: jito_py_rpc-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for jito_py_rpc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02910ee691ee38898068c9ab1e5c5bef8094f39ec4ff967c406c95a25ecaf809
MD5 bdf90b6a8b49dd4c952fc49a9753282e
BLAKE2b-256 46da8205b79d0e0e4611c51d64f6f8a18fc2e564bc12c7f2ce6c38c2a5516fb3

See more details on using hashes here.

File details

Details for the file jito_py_rpc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jito_py_rpc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for jito_py_rpc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f5d460a8e1d8b0333c32aa6ec86ae7e4a7b29b1399e7ec9166947315d061f1
MD5 25cbaffe449814e357e951c9383f807c
BLAKE2b-256 aa4a91b08c9fe8452b09d9050f8d0615a7adee7032e1c127373891c4297e1a5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page