get_sui_checkpoint
Retrieve detailed checkpoint information from the Sui blockchain by ID or sequence number to verify network state and transaction validity across mainnet or testnet.
Instructions
Get checkpoint details by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checkpointId | Yes | Checkpoint ID or sequence number | |
| network | No | Network type (defaults to mainnet) |
Implementation Reference
- src/handlers/sui-handlers.ts:455-470 (handler)MCP tool handler case that parses arguments, calls the Sui service's getCheckpoint method, and formats the response.case 'get_sui_checkpoint': { const checkpointId = args?.checkpointId as string | number; const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await suiService.getCheckpoint(checkpointId, network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
- src/handlers/sui-handlers.ts:222-240 (schema)Input schema definition and tool registration for get_sui_checkpoint in the tools array.{ name: 'get_sui_checkpoint', description: 'Get checkpoint details by ID', inputSchema: { type: 'object', properties: { checkpointId: { type: ['string', 'number'], description: 'Checkpoint ID or sequence number', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, required: ['checkpointId'], }, },
- src/services/sui-service.ts:277-292 (helper)Core service method implementing the RPC call to retrieve Sui checkpoint details via the blockchain service.async getCheckpoint( checkpointId: string | number, network: 'mainnet' | 'testnet' = 'mainnet' ): Promise<EndpointResponse> { const service = this.blockchainService.getServiceByBlockchain('sui', network); if (!service) { return { success: false, error: `Sui service not found for ${network}`, }; } return this.blockchainService.callRPCMethod(service.id, 'sui_getCheckpoint', [checkpointId]); }