helius_poll_transaction_confirmation
Monitor Solana blockchain transaction confirmation status by specifying signature, timeout, and polling interval to verify completion using the Helius API.
Instructions
Poll for transaction confirmation status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interval | No | ||
| signature | Yes | ||
| timeout | No |
Implementation Reference
- src/handlers/helius.ts:481-488 (handler)The main handler function implementing the tool logic by polling the Helius RPC for transaction confirmation status using the provided signature, timeout, and interval.export const pollTransactionConfirmationHandler = async (input: PollTransactionConfirmationInput): Promise<ToolResultSchema> => { try { const status = await (helius as any as Helius).rpc.pollTransactionConfirmation(input.signature, { timeout: input.timeout, interval: input.interval }); return createSuccessResponse(`Transaction status: ${status}`); } catch (error) { return createErrorResponse(`Error polling transaction confirmation: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:467-479 (schema)MCP tool schema defining the name, description, and input validation schema for the tool.{ name: 'helius_poll_transaction_confirmation', description: 'Poll for transaction confirmation status', inputSchema: { type: 'object', properties: { signature: { type: 'string' }, timeout: { type: 'number' }, interval: { type: 'number' } }, required: ['signature'] } },
- src/tools.ts:586-586 (registration)Registration of the tool name to its handler function in the handlers dictionary."helius_poll_transaction_confirmation": helius.pollTransactionConfirmationHandler,
- src/handlers/helius.types.ts:254-258 (schema)TypeScript interface defining the expected input shape for the handler, matching the MCP schema.export type PollTransactionConfirmationInput = { signature: string; timeout?: number; interval?: number; }