npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@solsdk/jito-ts

v4.2.2

Published

## What is it and why do you need it?

Downloads

211

Readme

jito-ts — TypeScript SDK for Jito Block Engine, Relayer, and Geyser

What is it and why do you need it?

jito-ts is a TypeScript SDK for interacting with the Jito infrastructure on Solana: Block Engine (MEV bundles), Relayer, and Geyser (data streaming). It allows you to:

  • Form and send MEV bundles to the Jito Block Engine
  • Subscribe to bundle processing results
  • Get information about leaders, tip accounts, etc.
  • Work with the Geyser API for streaming account, program, and block updates
  • Simulate bundle execution via RPC

The SDK is intended for developers who want to integrate Jito infrastructure into their services, bots, research utilities, or analytics tools.


Main components and architecture

  • Block Engine SDK — work with bundles, sending, subscribing to results, getting information about leaders and tip accounts.
  • Geyser SDK — subscribe to account, program, and block updates (real-time Solana event streaming).
  • RPC extension — extended Solana RPC connection class with bundle simulation support.
  • Authorization — JWT/Access Token support for protected methods (Block Engine, Geyser).

How to use the SDK

1. Installation and setup

  • Requires Node.js 20+, yarn >=1.22
  • Install dependencies: yarn
  • For gRPC protocol support, proto files must be generated (usually already in the repo, but if changed — use scripts from scripts/)

2. Authorization

  • Access to Block Engine and Geyser requires keys and/or access token.
  • For Block Engine: use a Solana Keypair (file or object).
  • For Geyser: access token (issued via Jito admin or support).

3. Main usage scenarios

Block Engine

  • Forming and sending bundles: use the Bundle class to create atomic sets of transactions, send via SearcherClient.sendBundle.
  • Getting information: methods getTipAccounts, getConnectedLeaders, getNextScheduledLeader.
  • Subscribing to results: onBundleResult — allows you to receive the result of processed bundles.
  • Asynchronous result streaming: bundleResults — async generator for receiving bundle results in for-await-of style (alternative to onBundleResult, convenient for async logic integration).

Geyser

  • Subscribe to account updates: onAccountUpdate
  • Subscribe to program updates: onProgramUpdate
  • Subscribe to new blocks: onProcessedBlock
  • Get heartbeat interval: getHeartbeatIntervalMillis

RPC

  • Bundle simulation: use the JitoRpcConnection class and the simulateBundle method to check how a bundle will execute without sending it to the network.

Main methods and classes

Block Engine

  • SearcherClient.sendBundle(bundle) — send an MEV bundle
  • SearcherClient.getTipAccounts() — get the list of tip accounts
  • SearcherClient.getConnectedLeaders() — get the list of validator leaders
  • SearcherClient.getNextScheduledLeader() — get the next leader
  • SearcherClient.onBundleResult(cb, errCb) — subscribe to bundle processing results
  • SearcherClient.bundleResults(onError) — async generator for streaming bundle results (used with for-await-of)
  • Bundle.addTransactions(...txs) — add transactions to a bundle
  • Bundle.addTipTx(keypair, lamports, tipAccount, blockhash) — add a tip transaction

Geyser

  • GeyserClient.onAccountUpdate(accounts, cb, errCb) — subscribe to account updates
  • GeyserClient.onProgramUpdate(programs, cb, errCb) — subscribe to program updates
  • GeyserClient.onProcessedBlock(cb, errCb) — subscribe to new blocks
  • GeyserClient.getHeartbeatIntervalMillis() — get the heartbeat interval

RPC

  • JitoRpcConnection.simulateBundle(bundle, config?) — simulate bundle execution

How authorization works

  • For Block Engine, a Solana Keypair is used: the SDK performs challenge-response and obtains JWT tokens for gRPC.
  • For Geyser, an access token is required (issued separately).
  • Authorization happens automatically when creating a client if the required parameters are provided.

Where to find examples

  • src/examples/simple_bundle — example of sending a simple bundle with memo and tip
  • src/examples/geyser — example of subscribing to account, program, and block updates via Geyser

Typical scenarios (without code)

  1. Send an MEV bundle: create a Bundle, add transactions, add a tip, send via SearcherClient.
  2. Subscribe to results: use onBundleResult or bundleResults to get the bundle processing status.
  3. Receive account/program/block updates: create a GeyserClient, subscribe to the required events.
  4. Simulate bundle execution: use JitoRpcConnection and simulateBundle for dry-run checking.

FAQ and tips

  • For gRPC to work, you need proper access to Jito endpoints (sometimes VPN or IP whitelisting is required).
  • If you encounter authorization errors — check the validity of your keys/tokens.
  • For production use, it is recommended to handle stream errors and re-subscribe on connection loss.
  • For testing, use devnet endpoints if available.

Links and support


If you want to add your own example or extend the SDK — see the structure in the src/sdk/ folder and follow the existing patterns. Questions and bugs — via Discord or GitHub Issues.