The Jito JSON-RPC JavaScript 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 Node.js and npm (Node Package Manager) for development. If you haven't installed Node.js yet, you can download it from nodejs.org.
You can install the package using npm:
npm install
Or if you prefer using yarn:
yarn add jito-js-rpc
To run the basic transaction example:
-
Ensure your environment is set up in
examples/basic-transaction.js
:// Load the sender's keypair const sender = loadKeypair("/path/to/wallet.json"); // Set up receiver pubkey const receiver = new PublicKey("YOUR_RECEIVER_PUBKEY");
-
Run the example:
node examples/basic_txn.js
To run the basic bundle example:
-
Set up your environment in
examples/basic-bundle.js
:// Load the sender's keypair const sender = loadKeypair("/path/to/wallet.json"); // Set up receiver pubkey const receiver = new PublicKey("YOUR_RECEIVER_PUBKEY");
-
Run the example:
node examples/basic_bundle.js
Contributions are welcome! Please feel free to submit a Pull Request.
For support, please join our Discord community.