Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

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
NameRequiredDescriptionDefault
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • 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', [] ); }
  • 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, }; }
  • 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)', }, }, }, },
  • Input schema definition for the tool.
    inputSchema: { type: 'object', properties: { network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, }, },

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/buildwithgrove/mcp-pocket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server