The server_info method provides a snapshot of the server's status and key XRP Ledger metrics such as validated_ledger, complete_ledgers, server build, uptime, and load. See the official reference for field details:
Bashcurl -s https://honeycluster.dev \ -H 'Content-Type: application/json' \ -d '{ "method": "server_info", "params": [ {} ] }'
Bash# Using websocat (brew install websocat) echo '{"command":"server_info"}' | websocat wss://honeycluster.dev
TypeScript// npm i xrpl import { Client } from 'xrpl'; async function getServerInfoWS(): Promise<void> { const client = new Client('wss://honeycluster.dev'); await client.connect(); const response = await client.request({ command: 'server_info' }); console.log(response); await client.disconnect(); } getServerInfoWS().catch(console.error);
Json{ "result": { "info": { "build_version": "2.x.x", "complete_ledgers": "xxxxx-xxxxx", "hostid": "...", "io_latency_ms": 1, "validated_ledger": { "age": 2, "base_fee_xrp": 0.00001, "hash": "...", "seq": 12345678 } }, "status": "success" } }
Uses the same shape over HTTP and WebSocket; the only difference is the wrapper keys per transport.
For field-by-field definitions, refer to the XRPL docs:
.