Skip to main content
Glama

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

NameRequiredDescriptionDefault
jitoApiUrlYes
serializedTransactionsYes

Input Schema (JSON Schema)

{ "properties": { "jitoApiUrl": { "type": "string" }, "serializedTransactions": { "items": { "type": "string" }, "type": "array" } }, "required": [ "serializedTransactions", "jitoApiUrl" ], "type": "object" }

Implementation Reference

  • 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,
  • 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'] } },
  • TypeScript type definition for the input parameters used in the handler.
    export type SendJitoBundleInput = { serializedTransactions: string[]; jitoApiUrl: string; }
  • 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; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcSpark/mcp-server-helius'

If you have feedback or need assistance with the MCP directory API, please join our Discord server