xrp

XRP (XRP)

Method: POST server_state

dropdown

POST server_state

server_state 命令向服务器询问有关涟漪服务器当前状态的各种机器可读信息。

响应与 server_info 方法几乎相同,但使用更易于处理而不是更易于阅读的单位。

(例如,XRP 值以整数滴而不是科学记数法或十进制值给出,时间以毫秒而不是秒给出。)

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"
    }
}