{% extends "template-base.html" %} {% block right_sidebar %}

#### API Methods

{% endblock %} {% block main %}

# WebSocket Tool

### server_info

Get information about the state of the server, formatted for human consumption.

Read more

#### Request

#### Responses

Keep last:
{% endblock %} {% block endbody %}

##### Connection Settings

s1.ripple.com (Mainnet Public Server)
s2.ripple.com (Full History Public Server)
s.altnet.rippletest.net (Testnet Public Server)
s.devnet.rippletest.net (Devnet Public Server)
localhost:6006 (Local `rippled` Server on port 6006)
(Requires that you run `rippled` on this machine with default WebSocket settings)

##### Permalink

Share the following link to load this page with the currently-loaded inputs: https://xrpl.org/websocket-api-tool.html?server=wss%3A%2F%2Fs1.ripple.com%2F&req=%7B%22id%22%3A1%2C%22command%22%3A%22server_info%22%7D

##### cURL Syntax

Use the following syntax to make the equivalent JSON-RPC request using cURL from a commandline interface: curl -H 'Content-Type: application/json' -d '{"method":"server_info","params":[{}]}' https://s1.ripple.com:51234/
{% endblock %}