arb_latest_validated
Retrieve the latest validated global state from Arbitrum networks using an admin API. Specify the RPC URL or chain name to access real-time chain health and node data.
Instructions
Get the latest validated global state information (requires admin API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainName | No | Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL | |
| rpcUrl | No | The RPC URL of the Arbitrum node (optional if default is set) |
Implementation Reference
- src/index.ts:1149-1169 (registration)Registration of the 'arb_latest_validated' tool in the list of available tools, including its name, description, and input schema definition.{ 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: [], }, },
- src/index.ts:449-463 (handler)MCP server handler for the 'arb_latest_validated' tool: resolves RPC URL or chain name, creates NitroNodeClient instance, calls getLatestValidated method, 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/clients/nitro-node-client.ts:201-211 (handler)Core implementation of getLatestValidated: performs RPC call to 'arb_latestValidated' with no parameters, handles errors gracefully.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 }`, }; } }