xrp

XRP (XRP)

Method: POST server_state

dropdown
POST

server_state

The server_state command asks the server for various machine-readable information about the rippled server's current state.

The response is almost the same as the server_info method, but uses units that are easier to process instead of easier to read.

(For example, XRP values are given in integer drops instead of scientific notation or decimal values, and time is given in milliseconds instead of seconds.)

Parameters

-

Request

curl --location --request POST 'https://xrp.getblock.io/mainnet/' \ 
--header 'x-api-key: YOUR-API-KEY' \ 
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "server_state",
"params": [{}],
"id": "getblock.io"}'


Response

{
    "result": {
        "state": {
            "build_version": "1.6.0",
            "complete_ledgers": "63648676-63648984",
            "io_latency_ms": 1,
            "jq_trans_overflow": "2298",
            "last_close": {
                "converge_time": 3001,
                "proposers": 37
            },
            "load_base": 256,
            "load_factor": 256,
            "load_factor_fee_escalation": 256,
            "load_factor_fee_queue": 256,
            "load_factor_fee_reference": 256,
            "load_factor_server": 256,
            "peer_disconnects": "144",
            "peer_disconnects_resources": "4",
            "peers": 10,
            "pubkey_node": "n9JtcDBjQnJPcfznXbvvWaahuFJLrVTa3PHZQHJppukV3HYstnWg",
            "server_state": "full",
            "server_state_duration_us": "82824088848",
            "state_accounting": {
                "connected": {
                    "duration_us": "253254127",
                    "transitions": 10
                },
                "disconnected": {
                    "duration_us": "726410366",
                    "transitions": 2
                },
                "full": {
                    "duration_us": "7863372854762",
                    "transitions": 19
                },
                "syncing": {
                    "duration_us": "26368737",
                    "transitions": 12
                },
                "tracking": {
                    "duration_us": "20996466",
                    "transitions": 21
                }
            },
            "time": "2021-May-18 09:43:05.891846 UTC",
            "uptime": 7864399,
            "validated_ledger": {
                "base_fee": 10,
                "close_time": 674646180,
                "hash": "64399457033EABFB777BDCC1928D633520CB27B46FF88D9E6C431DD68FCE8F1A",
                "reserve_base": 20000000,
                "reserve_inc": 5000000,
                "seq": 63648984
            },
            "validation_quorum": 30
        },
        "status": "success"
    }
}