Files
mDuo13 7645140477 Re-levelization: move non-docs content, rename content→docs
For better URLs, the content folder has been renamed 'docs' and all
other files have been moved up a level. Also, non-docs images have been
moved to the static folder at the top level where they belong.

Many relative paths had to be fixed to make this work.
2024-01-31 17:53:52 -08:00

1.7 KiB

html, parent, seo, labels
html parent seo labels
ping.html utility-methods.html
description
確認レスポンスを返します。これにより、接続のステータスと遅延をテストできます。
コアサーバー

ping

[ソース]

pingコマンドは確認レスポンスを返します。これにより、クライアントは接続のステータスと遅延をテストできます。

リクエストのフォーマット

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

{% tabs %}

{% tab label="WebSocket" %}

{
   "id":1,
   "command":"ping"
}

{% /tab %}

{% tab label="JSON-RPC" %}

{
   "method":"ping",
   "params":[
       {}
   ]
}

{% /tab %}

{% tab label="コマンドライン" %}

#Syntax: ping
rippled ping

{% /tab %}

{% /tabs %}

試してみる >

リクエストにはパラメーターが含まれていません。

レスポンスのフォーマット

処理が成功したレスポンスの例:

{% tabs %}

{% tab label="WebSocket" %}

{
   "id":1,
   "result":{},
   "status":"success",
   "type":"response"
}

{% /tab %}

{% tab label="JSON-RPC" %}

200 OK

{
   "result":{
       "status":"success"
   }
}

{% /tab %}

{% /tabs %}

このレスポンスは[標準フォーマット][]に従っており、正常に完了した場合は結果にフィールドが含まれません。クライアントはリクエストからレスポンスまでのラウンドトリップ時間を遅延として測定できます。

考えられるエラー

  • [汎用エラータイプ][]のすべて。

{% raw-partial file="/docs/_snippets/common-links.md" /%}