helius_get_epoch_schedule
Retrieve the epoch schedule for Solana blockchain using specified commitment levels. Access detailed information about block production and network timing via the MCP Helius server.
Instructions
Get the epoch schedule
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commitment | No |
Input Schema (JSON Schema)
{
"properties": {
"commitment": {
"enum": [
"confirmed",
"finalized",
"processed"
],
"type": "string"
}
},
"required": [],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:281-289 (handler)The handler function that implements the core logic for 'helius_get_epoch_schedule' by calling getEpochSchedule on the Helius connection and formatting the response.export const getEpochScheduleHandler = async (input: GetEpochScheduleInput): Promise<ToolResultSchema> => { try { // getEpochSchedule doesn't accept any parameters in the real SDK const epochSchedule = await (helius as any as Helius).connection.getEpochSchedule(); return createSuccessResponse(`Epoch schedule: ${JSON.stringify(epochSchedule, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting epoch schedule: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:231-241 (schema)The tool schema definition including name, description, and input schema for validation.{ name: "helius_get_epoch_schedule", description: "Get the epoch schedule", inputSchema: { type: "object", properties: { commitment: { type: "string", enum: ["confirmed", "finalized", "processed"] } }, required: [] } },
- src/tools.ts:567-567 (registration)Registration of the tool name to its handler function in the central handlers dictionary."helius_get_epoch_schedule": getEpochScheduleHandler,
- src/handlers/helius.types.ts:134-136 (schema)TypeScript type definition for the input parameters of the handler.export type GetEpochScheduleInput = { commitment?: "confirmed" | "finalized" | "processed"; }