Skip to content

Commit

Permalink
[JA] XRPLF#2319
Browse files Browse the repository at this point in the history
  • Loading branch information
tequdev committed May 22, 2024
1 parent 605f073 commit 6e1785e
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ labels:

`server_state`コマンドは、サーバに対し`rippled`サーバの現在の状態に関するさまざまな機械可読の情報を問い合わせます。レスポンスは[server_infoメソッド][]の場合とほぼ同じですが、読み取りやすい単位ではなく処理しやすい単位を使用します。(たとえば、XRP値は科学的記数法や10進数値の代わりに整数のdrop数で示され、時刻は秒単位ではなくミリ秒単位で示されます。)

The [Clio server](the-clio-server.html) does not support `server_state` directly, but you can ask for the `server_state` of the `rippled` server that Clio is connected to. Specify `"ledger_index": "current"` (WebSocket) or `"params": [{"ledger_index": "current"}]` (JSON-RPC).

## リクエストのフォーマット
リクエストのフォーマットの例:

Expand All @@ -20,19 +22,20 @@ labels:
{% tab label="WebSocket" %}
```json
{
"id": 2,
"command": "server_state"
"id": 2,
"command": "server_state",
"ledger_index": "current"
}
```
{% /tab %}

{% tab label="JSON-RPC" %}
```json
{
"method": "server_state",
"params": [
{}
]
"method": "server_state",
"params": [
{"ledger_index": "current"}
]
}
```
{% /tab %}
Expand Down

0 comments on commit 6e1785e

Please sign in to comment.