helius_get_version
Retrieve the version of the Solana node to verify software status and compatibility.
Instructions
Get the version of the Solana node
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "helius_get_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/helius.ts:310-317 (handler)The handler function that executes the 'helius_get_version' tool logic. It calls connection.getVersion() on the Helius SDK and returns the Solana node version as a success response, or an error response on failure.
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/handlers/helius.types.ts:147-147 (schema)The input type definition for the getVersionHandler. It is an empty object (GetVersionInput = {}) because no input parameters are needed.
export type GetVersionInput = {} - src/tools.ts:266-272 (registration)The tool definition/registration in the tools array. Defines name 'helius_get_version', description 'Get the version of the Solana node', and an empty input schema (no required params).
name: "helius_get_version", description: "Get the version of the Solana node", inputSchema: { type: "object", properties: {}, required: [] } - src/tools.ts:570-570 (registration)The handler mapping in the handlers dictionary, mapping the tool name 'helius_get_version' to the getVersionHandler function imported from the handlers module.
"helius_get_version": getVersionHandler, - src/handlers/utils.ts:38-44 (helper)The createSuccessResponse helper used by the handler to format successful responses.
export const createSuccessResponse = (message: string): ToolResultSchema => { return { content: [{ type: "text", text: message }], isError: false