Metadata-Version: 2.4
Name: jito_py_rpc
Version: 0.1.5
Home-page: https://github.com/jito-labs/jito-py-rpc
Author: Jito Labs
Author-email: marshall@jito.wtf
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python

# jito-sdk-python

[![Discord](https://img.shields.io/discord/938287290806042626?label=Discord&logo=discord&style=flat&color=7289DA)](https://discord.gg/WeAMhmaZ)
![Python](https://img.shields.io/badge/Python-3.8%2B-blue?logo=python)
[![PyPI](https://img.shields.io/pypi/v/jito-py-rpc?label=PyPI&logo=python)](https://pypi.org/project/jito-py-rpc/)
[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://pypi.org/project/jito-py-rpc/)

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](https://www.python.org/downloads/)

2. Verify the installation:
   ```bash
   python --version
   ```

3. (Optional but recommended) Set up a virtual environment:
   ```bash
   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:

```bash
pip install jito-py-rpc
```

## Usage Examples

### Basic Transaction Example


To run the basic transaction example:

1. Ensure your environment is set up in `basic_txn.py`:

   ```python
   # 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:
   ```bash
   python basic_txn.py
   ```

### Basic Bundle Example

To run the basic bundle example:

1. Ensure your environment is set up in `basic_bundle.py`:

   ```python
   # 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:
   ```bash
   python basic_bundle.py
   ```

## Contributing

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

## Support

For support, please join our [Discord community](https://discord.gg/jTSmEzaR).
