helius_send_jito_bundle
Send a batch of Solana transactions to Jito for processing using the Helius API. Facilitates efficient blockchain interactions by handling multiple transactions in a single request.
Instructions
Send a bundle of transactions to Jito
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jitoApiUrl | Yes | ||
| serializedTransactions | Yes |
Input Schema (JSON Schema)
{
"properties": {
"jitoApiUrl": {
"type": "string"
},
"serializedTransactions": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"serializedTransactions",
"jitoApiUrl"
],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:490-497 (handler)The core handler function that sends the Jito bundle using the Helius RPC client.export const sendJitoBundleHandler = async (input: SendJitoBundleInput): Promise<ToolResultSchema> => { try { const bundleId = await (helius as any as Helius).rpc.sendJitoBundle(input.serializedTransactions, input.jitoApiUrl); return createSuccessResponse(`Jito bundle sent: ${bundleId}`); } catch (error) { return createErrorResponse(`Error sending Jito bundle: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:587-587 (registration)Registration of the tool handler in the handlers dictionary."helius_send_jito_bundle": helius.sendJitoBundleHandler,
- src/tools.ts:480-491 (schema)Tool definition including name, description, and input schema.{ name: 'helius_send_jito_bundle', description: 'Send a bundle of transactions to Jito', inputSchema: { type: 'object', properties: { serializedTransactions: { type: 'array', items: { type: 'string' } }, jitoApiUrl: { type: 'string' } }, required: ['serializedTransactions', 'jitoApiUrl'] } },
- src/handlers/helius.types.ts:260-263 (schema)TypeScript type definition for the input parameters used in the handler.export type SendJitoBundleInput = { serializedTransactions: string[]; jitoApiUrl: string; }
- src/handlers/helius.ts:41-45 (helper)Initialization of the Helius client instance used by the handler.if (process.env.TEST_MODE === 'true') { helius = new MockHeliusClient(); } else { helius = new Helius(process.env.HELIUS_API_KEY as string) as unknown as HeliusClient; }