get_sui_latest_checkpoint
Retrieve the current checkpoint sequence number for Sui blockchain networks to monitor network progress and verify transaction finality.
Instructions
Get latest checkpoint sequence number
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network type (defaults to mainnet) |
Implementation Reference
- src/services/sui-service.ts:255-272 (handler)Core handler function in SuiService that executes the tool logic by calling the Sui RPC method 'sui_getLatestCheckpointSequenceNumber'.async getLatestCheckpoint( 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_getLatestCheckpointSequenceNumber', [] ); }
- src/handlers/sui-handlers.ts:439-453 (handler)Dispatcher handler in handleSuiTool that extracts arguments and calls the SuiService method.case 'get_sui_latest_checkpoint': { const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await suiService.getLatestCheckpoint(network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
- src/handlers/sui-handlers.ts:208-221 (registration)Tool registration in registerSuiHandlers including name, description, and input schema.{ name: 'get_sui_latest_checkpoint', description: 'Get latest checkpoint sequence number', inputSchema: { type: 'object', properties: { network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, }, },
- src/handlers/sui-handlers.ts:211-221 (schema)Input schema definition for the tool.inputSchema: { type: 'object', properties: { network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, }, },