Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)}`); } }
  • 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,

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