Crates.io | jito-sdk-rust |
lib.rs | jito-sdk-rust |
version | 0.1.0 |
source | src |
created_at | 2024-10-01 00:03:04.607423 |
updated_at | 2024-10-01 00:03:04.607423 |
description | Rust SDK for interacting with Jito RPC services on Solana |
homepage | https://www.jito.wtf/ |
repository | https://github.com/jito-labs/jito-rust-rpc |
max_upload_size | |
id | 1392309 |
size | 150,894 |
The Jito JSON-RPC Rust 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.
getInflightBundleStatuses
: Retrieve the status of in-flight bundles.getBundleStatuses
: Fetch the statuses of submitted bundles.getTipAccounts
: Get accounts eligible for tips.sendBundle
: Submit bundles to the Jito Block Engine.sendTransaction
: Submit transactions with enhanced priority and speed.This project requires Rust for development. If you haven't installed Rust yet, follow these steps:
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the on-screen instructions to complete the installation.
Verify the installation:
rustc --version
(Optional but recommended) Keep Rust up to date:
rustup update
Add the following to your Cargo.toml
:
[dependencies]
jito-sdk-rust = "0.1.0" # Replace with the actual version
To run the basic transaction example:
Ensure your environment is set up in jito-rust-rpc/examples/basic_txn.rs
:
// Load the sender's keypair
let sender = load_keypair("/path/to/wallet.json")?;
// Set up receiver pubkey
let receiver = Pubkey::from_str("YOUR_RECEIVER_PUBKEY")?;
Run the example:
cargo run --example basic_txn
To run the basic bundle example:
Set up your environment in jito-rust-rpc/examples/basic_bundle.rs
:
// Load the sender's keypair
let sender = load_keypair("/path/to/wallet.json")?;
// Set up receiver pubkey
let receiver = Pubkey::from_str("YOUR_RECEIVER_PUBKEY")?;
Run the example:
cargo run --example basic_bundle
Contributions are welcome! Please feel free to submit a Pull Request.
For support, please join our Discord community.