Skip to main content
Glama

helius_get_version

Retrieve the current version of the Solana node using the MCP Helius server, facilitating seamless integration and monitoring within blockchain operations.

Instructions

Get the version of the Solana node

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • The core handler function for 'helius_get_version' that fetches the Solana node version using the Helius RPC connection and formats 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)}`); } }
  • Tool schema definition including name, description, and empty input schema for 'helius_get_version'.
    { 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 to its handler 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