arb_latest_validated
Retrieve validated global state information from Arbitrum networks using admin API for monitoring chain health and node operations.
Instructions
Get the latest validated global state information (requires admin API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpcUrl | No | The RPC URL of the Arbitrum node (optional if default is set) | |
| chainName | No | Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL |
Implementation Reference
- src/index.ts:449-463 (handler)MCP tool handler for 'arb_latest_validated'. Resolves RPC URL from args or chain name, creates NitroNodeClient instance, calls getLatestValidated() method, formats and returns the result as JSON text content.case "arb_latest_validated": { const rpcUrl = await this.resolveRpcUrl( (args.rpcUrl as string) || (args.chainName as string) ); const nodeClient = new NitroNodeClient(rpcUrl); const validated = await nodeClient.getLatestValidated(); return { content: [ { type: "text", text: JSON.stringify(validated, null, 2), }, ], }; }
- src/index.ts:1149-1169 (registration)Tool registration in getAvailableTools() method, including name, description, and input schema definition for the listTools MCP request.{ name: "arb_latest_validated", description: "Get the latest validated global state information (requires admin API)", inputSchema: { type: "object" as const, properties: { rpcUrl: { type: "string", description: "The RPC URL of the Arbitrum node (optional if default is set)", }, chainName: { type: "string", description: "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL", }, }, required: [], }, },
- NitroNodeClient helper method implementing the core RPC call to 'arb_latestValidated' which retrieves the latest validated global state information from the Arbitrum node.async getLatestValidated(): Promise<any> { try { return await this.makeRpcCall("arb_latestValidated", []); } catch (error) { return { error: `Latest validated state not supported on this RPC endpoint: ${ (error as Error).message }`, }; } }