Jito Object

Jito object for submitting and validating Jito bundles.

Jito Object Documentation

The Jito object provides methods to interact with the Jito MEV (Maximal Extractable Value) infrastructure on the Solana blockchain. It supports submitting, signing, simulating, preparing, and modifying transaction bundles, as well as retrieving tip statistics. The class leverages the Roboqo client to make RPC calls for MEV-related operations.

Methods

submitBundle

Description Submits a bundle of transactions to Jito for processing.

Signature

public async submitBundle(
  transactions: (Transaction | VersionedTransaction)[]
): Promise<JitoBundle>

Parameters

  • transactions ((Transaction | VersionedTransaction)[]): An array of transactions to include in the bundle.

Returns

  • Promise<JitoBundle>: A JitoBundle object containing the bundle ID and transaction signatures.


signAndSubmitBundle

Description Signs and submits a bundle of transactions to Jito.

Signature

Parameters

  • transactions ((Transaction | VersionedTransaction)[]): An array of transactions to sign and submit.

Returns

  • Promise<JitoBundle>: A JitoBundle object containing the bundle ID and transaction signatures.

Example Usage


signAndSimulateBundle

Description Signs and simulates a bundle of transactions to determine their outcome and potential success.

Signature

Parameters

  • transactions ((Transaction | VersionedTransaction)[]): An array of transactions to sign and simulate.

Returns

  • Promise<SimulateBundleResponse>: The simulation results, including execution logs and errors (if any).

Example Usage


simulateBundle

Description Simulates a bundle of transactions to determine if they would succeed and to analyze the outcome.

Signature

Parameters

  • transactions ((Transaction | VersionedTransaction)[]): An array of transactions to simulate.

Returns

  • Promise<SimulateBundleResponse>: The simulation results, including execution logs and errors (if any).

Example Usage


prepareBundle

Description Prepares a bundle of transactions with a specified tip amount in lamports.

Signature

Parameters

  • transactions ((Transaction | VersionedTransaction)[]): An array of transactions to prepare.

  • lamports (string): The tip amount in lamports.

Returns

  • Promise<Transaction[]>: An array of deserialized transactions prepared with the specified tip.

Example Usage


prepareBundlePercentile

Description Prepares a bundle of transactions with a tip based on a specified percentile.

Signature

Parameters

  • transactions ((Transaction | VersionedTransaction)[]): An array of transactions to prepare.

  • percentile (number): The percentile for determining the tip amount.

Returns

  • Promise<Transaction[]>: An array of deserialized transactions prepared with the percentile-based tip.

Example Usage


addTip

Description Adds a specific tip amount in lamports to a transaction.

Signature

Parameters

  • transaction (Transaction | VersionedTransaction): The transaction to modify.

  • lamports (string): The tip amount in lamports.

Returns

  • Promise<Transaction>: The deserialized transaction with the tip added.

Example Usage


addTipPercentile

Description Adds a tip to a transaction based on a specified percentile.

Signature

Parameters

  • transaction (Transaction | VersionedTransaction): The transaction to modify.

  • percentile (number): The percentile for determining the tip amount.

Returns

  • Promise<Transaction>: The deserialized transaction with the percentile-based tip added.

Example Usage


getTipStats

Description Retrieves the latest tip statistics, including various percentiles and exponential moving averages (EMA).

Signature

Returns

  • Promise<JitoTipStats>: The tip statistics, including various percentiles and EMA values.

Example Usage

Sample Return Value


Types

JitoTipStats

Represents the statistics for Jito tips.

SimulateBundleResponse

Represents the response from simulating a bundle of transactions.

Last updated