helius_get_version
Retrieve the current Solana node version to verify blockchain compatibility and ensure proper network synchronization.
Instructions
Get the version of the Solana node
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/helius.ts:310-317 (handler)The getVersionHandler function implements the core logic for the 'helius_get_version' tool by calling the Solana RPC getVersion method via Helius client and formatting the response.export const getVersionHandler = async (input: GetVersionInput): Promise<ToolResultSchema> => { try { const version = await (helius as any as Helius).connection.getVersion(); return createSuccessResponse(`Version: ${JSON.stringify(version, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting version: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:265-273 (schema)Schema definition for the 'helius_get_version' tool, specifying the name, description, and empty input schema.{ name: "helius_get_version", description: "Get the version of the Solana node", inputSchema: { type: "object", properties: {}, required: [] } },
- src/tools.ts:570-570 (registration)Registration of the 'helius_get_version' tool by mapping its name to the getVersionHandler function in the handlers dictionary."helius_get_version": getVersionHandler,