Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

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
NameRequiredDescriptionDefault
checkpointIdYesCheckpoint ID or sequence number
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • 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, }; }
  • 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'], }, },
  • 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]); }

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