From b0692a0c9f3759b3db6468617ac430d64d87c2a6 Mon Sep 17 00:00:00 2001 From: tequ Date: Wed, 6 Dec 2023 19:30:17 +0900 Subject: [PATCH] [JA] update references --- .../health-check-interventions.md | 2 +- .../@i18n/ja/references/client-libraries.md | 17 +- .../status-and-debugging-methods/feature.md | 17 +- .../validator_info.md | 131 ++++ .../api-conventions/rate-limiting.md | 69 ++ .../peer-port-methods/health-check.md | 118 ++++ .../peer-port-methods/validator-list.md | 129 ++++ .../account-methods/account_currencies.md | 13 +- .../account-methods/account_info.md | 119 +++- .../account-methods/account_lines.md | 324 ++++++++- .../account-methods/account_objects.md | 665 +++++++++++++++++- .../account-methods/account_offers.md | 76 +- .../clio-methods/ledger-clio.md | 133 ++++ .../clio-methods/server_info-clio.md | 632 +++++++++++++++++ .../ledger-methods/ledger.md | 156 ++-- .../ledger-methods/ledger_entry.md | 76 +- .../path-and-order-book-methods/amm_info.md | 14 +- .../server-info-methods/manifest.md | 155 ++++ .../server-info-methods/server_info.md | 322 ++------- .../server-info-methods/server_state.md | 439 ++++++------ .../protocol/ledger-data/common-fields.md | 39 + .../ledger-data/ledger-entry-types/index.md | 2 +- .../protocol/transactions/common-fields.md | 34 +- content/_snippets/etl-source-object.ja.md | 13 + .../_snippets/port-descriptor-object.ja.md | 11 + content/_snippets/rippled-api-links.md | 3 + .../peer-port-methods/validator-list.md | 3 +- .../account-methods/account_lines.md | 8 +- .../account-methods/account_offers.md | 13 +- .../clio-methods/ledger-clio.md | 18 +- .../ledger-methods/ledger.md | 2 +- .../server-info-methods/manifest.md | 1 - .../server-info-methods/server_info.md | 2 +- dactyl-config.yml | 57 +- img/ledger-object-ids.ja.svg | 2 +- 35 files changed, 3003 insertions(+), 812 deletions(-) create mode 100644 content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_info.md create mode 100644 content/@i18n/ja/references/http-websocket-apis/api-conventions/rate-limiting.md create mode 100644 content/@i18n/ja/references/http-websocket-apis/peer-port-methods/health-check.md create mode 100644 content/@i18n/ja/references/http-websocket-apis/peer-port-methods/validator-list.md create mode 100644 content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md create mode 100644 content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/server_info-clio.md create mode 100644 content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md create mode 100644 content/@i18n/ja/references/protocol/ledger-data/common-fields.md create mode 100644 content/_snippets/etl-source-object.ja.md create mode 100644 content/_snippets/port-descriptor-object.ja.md diff --git a/content/@i18n/ja/infrastructure/troubleshooting/health-check-interventions.md b/content/@i18n/ja/infrastructure/troubleshooting/health-check-interventions.md index e29166dc97..34079bbc4d 100644 --- a/content/@i18n/ja/infrastructure/troubleshooting/health-check-interventions.md +++ b/content/@i18n/ja/infrastructure/troubleshooting/health-check-interventions.md @@ -111,7 +111,7 @@ XRP Ledgerのサーバにかかる負荷の量は、ネットワークのトラ -[metrics]: health-check.html#response-format +[metrics]: health-check.html#レスポンスのフォーマット {% include '_snippets/rippled-api-links.md' %} {% include '_snippets/tx-type-links.md' %} {% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/client-libraries.md b/content/@i18n/ja/references/client-libraries.md index 8b05118a02..c9f9b7fc03 100644 --- a/content/@i18n/ja/references/client-libraries.md +++ b/content/@i18n/ja/references/client-libraries.md @@ -7,13 +7,12 @@ blurb: これらのライブラリを使用して、お好みのプログラミ これらのクライアントライブラリは、XRP Ledgerのデータにアクセスし処理するための一般的な作業の一部を簡素化し、それぞれのプログラミング言語のネイティブな規約に従った形でデータを表示します。 -その他のプログラミング言語の場合、[HTTP APIs](http-websocket-apis.html) を通してXRP Ledgerにアクセスすることが可能です。 - -| 言語 | ライブラリ名 | Get Started | APIリファレンス | ソースコード | -|----------|--------------|-------------|---------------|-------------| -| **Python** | `xrpl-py` | [Pythonを使ってみよう](get-started-using-python.html) | [API リファレンス](https://xrpl-py.readthedocs.io/) | [リポジトリ](https://github.com/XRPLF/xrpl-py) | -| **JavaScript** / **TypeScript** | `xrpl.js` | [JavaScriptを使ってみよう](get-started-using-javascript.html) | [API リファレンス](https://js.xrpl.org/) | [リポジトリ](https://github.com/XRPLF/xrpl.js) | -| **C++** | `rippled` 署名ライブラリ | [署名ライブラリを使ってみよう](https://github.com/XRPLF/rippled/tree/develop/Builds/linux#signing-library) | | ([`rippled`](https://github.com/XRPLF/rippled/))の一部 | -| **Java** | `xrpl4j` | [Javaを使ってみよう](get-started-using-java.html) | [API リファレンス](https://javadoc.io/doc/org.xrpl/) | [リポジトリ](https://github.com/XRPLF/xrpl4j) | -| **Ruby** | `xrbp` | | [API リファレンス](https://www.rubydoc.info/gems/xrbp) | [リポジトリ](https://github.com/DevNullProd/xrbp) | +その他のプログラミング言語の場合、[HTTP APIs](http-websocket-apis.html)を通してXRP Ledgerにアクセスすることが可能です。 +| 言語 | ライブラリ名 | Get Started | APIリファレンス | ソースコード | +|---------------------------------|------------------------|--------------|---------------|-------------| +| **Python** | `xrpl-py` | [Pythonを使ってみよう](get-started-using-python.html) | [API リファレンス](https://xrpl-py.readthedocs.io/) | [リポジトリ](https://github.com/XRPLF/xrpl-py) | +| **JavaScript** / **TypeScript** | `xrpl.js` | [JavaScriptを使ってみよう](get-started-using-javascript.html) | [API リファレンス](https://js.xrpl.org/) | [リポジトリ](https://github.com/XRPLF/xrpl.js) | +| **C++** | `rippled` 署名ライブラリ | [署名ライブラリを使ってみよう](https://github.com/XRPLF/rippled/tree/develop/Builds/linux#signing-library) | | ([`rippled`](https://github.com/XRPLF/rippled/))の一部 | +| **Java** | `xrpl4j` | [Javaを使ってみよう](get-started-using-java.html) | [API リファレンス](https://javadoc.io/doc/org.xrpl/) | [リポジトリ](https://github.com/XRPLF/xrpl4j) | +| **PHP** | `XRPL_PHP` | [PHPを使ってみよう](get-started-using-php.html) | [XRPL_PHP ドキュメント](https://alexanderbuzz.github.io/xrpl-php-docs/) | [リポジトリ](https://github.com/AlexanderBuzz/xrpl-php) | diff --git a/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/feature.md b/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/feature.md index 39c05e5c7a..96cb83d54b 100644 --- a/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/feature.md +++ b/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/feature.md @@ -1,7 +1,7 @@ --- html: feature.html parent: status-and-debugging-methods.html -blurb: Amendmentに関してこのサーバーが認識している情報を返します。 +blurb: Amendmentに関してこのサーバが認識している情報を返します。 labels: - ブロックチェーン - コアサーバー @@ -9,9 +9,9 @@ labels: # feature [[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/rpc/handlers/Feature1.cpp "Source") -`feature`コマンドは、[Amendment](amendments.html)に関してこのサーバーが認識している情報(Amendmentが有効であるかどうか、サーバーが[Amendmentプロセス](amendments.html#amendmentプロセス)でこれらのAmendmentに賛成票を投じたかどうかなど)を返します。[新規: rippled 0.31.0][] +`feature`コマンドは、[Amendment](amendments.html)に関してこのサーバが認識している情報(Amendmentが有効であるかどうか、サーバが[Amendmentプロセス](amendments.html#amendmentプロセス)でこれらのAmendmentに賛成票を投じたかどうかなど)を返します。[新規: rippled 0.31.0][] -`feature`コマンドを使用して、Amendmentへの賛成票または反対票を投じるようにサーバーを一時的に設定できます。この変更は、サーバーの再起動後も保持されます。[更新: rippled 1.7.0][] +`feature`コマンドを使用して、Amendmentへの賛成票または反対票を投じるようにサーバを一時的に設定できます。この変更は、サーバの再起動後も保持されます。[更新: rippled 1.7.0][] _`feature`メソッドは、権限のないユーザーは実行できない[管理メソッド](admin-api-methods.html)です。_ @@ -68,9 +68,9 @@ rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373 | `Field` | 型 | 説明 | |:----------|:--------|:-------------------------------------------------------| | `feature` | 文字列 | _(省略可)_ Amendmentの一意のID(16進数)またはAmendmentの短い名前。指定されている場合は、応答が1つのAmendmentに限定されます。それ以外の場合は応答にすべてのAmendmentのリストが表示されます。 | -| `vetoed` | ブール値 | (省略可、`feature`が指定されていない場合は無視されます)trueの場合、サーバーに対し`feature`で指定されたAmendmentに反対票を投じるように指示します。falseの場合、サーバーに対しAmendmentに賛成票を投じるように指示します。 | +| `vetoed` | ブール値 | (省略可、`feature`が指定されていない場合は無視されます)trueの場合、サーバに対し`feature`で指定されたAmendmentに反対票を投じるように指示します。falseの場合、サーバに対しAmendmentに賛成票を投じるように指示します。 | -**注記:** サーバーが新しいAmendmentの適用方法を現在認識していない場合でも、`feature`フィールドにAmendment IDを指定すれば、新しいAmendmentに賛成票を投じるようにサーバーを設定できます。たとえば、Amendmentを _確かに_ サポートする新しい`rippled`バージョンに間もなくアップグレードする予定がある場合などにこのように設定できます。 +**注記:** サーバが新しいAmendmentの適用方法を現在認識していない場合でも、`feature`フィールドにAmendment IDを指定すれば、新しいAmendmentに賛成票を投じるようにサーバを設定できます。たとえば、Amendmentをサポートする新しい`rippled`バージョンに _確実に_ アップグレードする予定がある場合などにこのように設定できます。 ### 応答フォーマット @@ -187,15 +187,16 @@ Connecting to 127.0.0.1:5005 |:------------|:--------|:-----------------------------------------------------| | `enabled` | ブール値 | 最新レジャーでこのAmendmentが現在有効であるかどうか。 | | `name` | 文字列 | (省略される場合があります)このAmendmentの人間が読める形式の名前(判明している場合)。 | -| `supported` | ブール値 | サーバーがこのAmendmentの適用方法を認識しているかどうか。このフィールドが`false`(サーバーがこのAmendmentの適用方法を認識していない)に設定されており、`enabled`が`true`(このAmendmentが最新レジャーで有効である)に設定されている場合、このAmendmentによりサーバーが[Amendmentブロック](amendments.html#amendment-blocked)される可能性があります。 | +| `supported` | ブール値 | サーバがこのAmendmentの適用方法を認識しているかどうか。このフィールドが`false`(サーバがこのAmendmentの適用方法を認識していない)に設定されており、`enabled`が`true`(このAmendmentが最新レジャーで有効である)に設定されている場合、このAmendmentによりサーバが[Amendmentブロック](amendments.html#amendment-blocked)される可能性があります。 | | `vetoed` | ブール値 または 文字列 | ほとんどのAmendmentにおいて、これはサーバがこのAmendmentに反対票を投じるように指示されているかどうかを示すブール値です。コードの中で廃止とマークされているAmendmentについては、代わりに`Obsolete`という文字列を指定します。[更新: rippled 1.11.0][]. | -**注意:** Amendmentの`name`は、Amendmentの内容を厳密に示すものではありません。サーバー間でこの名前が一意であることや整合性があることは保証されません。 +**注意:** Amendmentの`name`は、Amendmentの内容を厳密に示すものではありません。サーバ間でこの名前が一意であることや整合性があることは保証されません。 ### 考えられるエラー * [汎用エラータイプ][]のすべて。 -* `badFeature` - 指定されている`feature`のフォーマットが正しくないか、サーバーがその名前のAmendmentを認識していません。 +* `badFeature` - 指定されている`feature`のフォーマットが正しくないか、サーバがその名前のAmendmentを認識していません。 +- `reportingUnsupported` - ([レポートモード][]サーバのみ) このメソッドはレポートモードでは使用できません。 {% include '_snippets/rippled-api-links.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_info.md b/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_info.md new file mode 100644 index 0000000000..bed368ca89 --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_info.md @@ -0,0 +1,131 @@ +--- +html: validator_info.html +parent: status-and-debugging-methods.html +blurb: バリデータとして設定されている場合、サーバのバリデーション設定を取得します。 +labels: + - コアサーバー + - ブロックチェーン +--- +# validator_info +[[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/rpc/handlers/ValidatorInfo.cpp "ソース") + +`{{currentpage.name}}`メソッドは、サーバがバリデータとして設定されている場合に、現在のバリデータの設定を返します。 + +_`{{currentpage.name}}`メソッドは[管理メソッド](admin-api-methods.html)で、権限のないユーザは実行できません。_ + + +### リクエストのフォーマット + +リクエストのフォーマットの例: + + + +*WebSocket* + +```json +{ + "command": "{{currentpage.name}}" +} +``` + +*JSON-RPC* + +```json +{ + "method": "{{currentpage.name}}" +} +``` + +*コマンドライン* + +```sh +#Syntax: {{currentpage.name}} +rippled {{currentpage.name}} +``` + + + +リクエストはパラメータを使用しません。 + + +### レスポンスのフォーマット + +成功したレスポンスの例: + + + +*WebSocket* + +```json +{ + "result": { + "domain": "mduo13.com", + "ephemeral_key": "n9KnrcCmL5psyKtk2KWP6jy14Hj4EXuZDg7XMdQJ9cSDoFSp53hu", + "manifest": "JAAAAAFxIe002KClGBUlRA7h5J2Y5B7Xdlxn1Z5OxY7ZC2UmqUIikHMhAkVIeB7McBf4NFsBceQQlScTVUWMdpYzwmvs115SUGDKdkcwRQIhAJnKfYWnPsBsATIIRfgkAAK+HE4zp8G8AmOPrHmLZpZAAiANiNECVQTKktoD7BEoEmS8jaFBNMgRdcG0dttPurCAGXcKbWR1bzEzLmNvbXASQPjO6wxOfhtWsJ6oMWBg8Rs5STAGvQV2ArI5MG3KbpFrNSMxbx630Ars9d9j1ORsUS5v1biZRShZfg9180JuZAo=", + "master_key": "nHBk5DPexBjinXV8qHn7SEKzoxh2W92FxSbNTPgGtQYBzEF4msn9", + "seq": 1 + }, + "status": "success", + "type": "response" +} +``` + +*JSON-RPC* + +```json +200 OK + +{ + "result": { + "domain": "mduo13.com", + "ephemeral_key": "n9KnrcCmL5psyKtk2KWP6jy14Hj4EXuZDg7XMdQJ9cSDoFSp53hu", + "manifest": "JAAAAAFxIe002KClGBUlRA7h5J2Y5B7Xdlxn1Z5OxY7ZC2UmqUIikHMhAkVIeB7McBf4NFsBceQQlScTVUWMdpYzwmvs115SUGDKdkcwRQIhAJnKfYWnPsBsATIIRfgkAAK+HE4zp8G8AmOPrHmLZpZAAiANiNECVQTKktoD7BEoEmS8jaFBNMgRdcG0dttPurCAGXcKbWR1bzEzLmNvbXASQPjO6wxOfhtWsJ6oMWBg8Rs5STAGvQV2ArI5MG3KbpFrNSMxbx630Ars9d9j1ORsUS5v1biZRShZfg9180JuZAo=", + "master_key": "nHBk5DPexBjinXV8qHn7SEKzoxh2W92FxSbNTPgGtQYBzEF4msn9", + "seq": 1, + "status": "success" + } +} +``` + +*コマンドライン* + +```json +Loading: "/etc/rippled.cfg" +Connecting to 127.0.0.1:5005 + +{ + "result" : { + "domain" : "mduo13.com", + "ephemeral_key" : "n9KnrcCmL5psyKtk2KWP6jy14Hj4EXuZDg7XMdQJ9cSDoFSp53hu", + "manifest" : "JAAAAAFxIe002KClGBUlRA7h5J2Y5B7Xdlxn1Z5OxY7ZC2UmqUIikHMhAkVIeB7McBf4NFsBceQQlScTVUWMdpYzwmvs115SUGDKdkcwRQIhAJnKfYWnPsBsATIIRfgkAAK+HE4zp8G8AmOPrHmLZpZAAiANiNECVQTKktoD7BEoEmS8jaFBNMgRdcG0dttPurCAGXcKbWR1bzEzLmNvbXASQPjO6wxOfhtWsJ6oMWBg8Rs5STAGvQV2ArI5MG3KbpFrNSMxbx630Ars9d9j1ORsUS5v1biZRShZfg9180JuZAo=", + "master_key" : "nHBk5DPexBjinXV8qHn7SEKzoxh2W92FxSbNTPgGtQYBzEF4msn9", + "seq" : 1, + "status" : "success" + } +} +``` + + + +レスポンスは[標準フォーマット][]に従い、成功した結果には以下のフィールドが含まれます. + +| `Field` | 型 | 説明 | +|:----------------|:------|:----------------------------------------------------------| +| `domain` | 文字列 | _(省略される場合があります)_ このバリデータに関連付けられたドメイン名 (ドメイン名が設定されている場合)。 | +| `ephemeral_key` | 文字列 | _(省略される場合があります)_ このサーバが検証メッセージに署名する際に使用する公開鍵。この鍵は、バリデータが設定したトークンを変更した際に変更されます。 | +| `manifest` | 文字列 | _(省略される場合があります)_ このバリデータが設定したトークンに対応するパブリックな「マニフェスト」を[バイナリにシリアライズ](serialization.html)して、base64でエンコードしたもの。このフィールドには個人情報は含まれません。 | +| `master_key` | 文字列 | このバリデータのマスターキーペアの公開鍵。このキーはバリデータを一意に識別するもので、バリデータが公開鍵をローテーションする場合でも同じです。サーバが`[validator_token]`ではなく`[validation_seed]`を用いて設定されている場合、レスポンスのフィールドはこれだけとなります。 | +| `seq` | 数値 | _(省略される場合があります)_ このバリデータのバリデーション用トークンおよび設定のシーケンス番号。この番号は、バリデータのオペレータがトークンを更新して鍵をローテーションしたり設定を変更したりするたびに増加します。 | + +バリデータトークンとキーローテーションの詳細については、[validator-keys-toolガイド](https://github.com/ripple/validator-keys-tool/blob/master/doc/validator-keys-tool-guide.md)をご覧ください。 + + +### 考えられるエラー + +* [汎用エラータイプ][]のすべて。 +- `invalidParams` - サーバが[バリデータとして設定されていない](run-rippled-as-a-validator.html)場合、サーバはこのエラーを`"error_message" : "not a validator"`と共に返します。 + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/api-conventions/rate-limiting.md b/content/@i18n/ja/references/http-websocket-apis/api-conventions/rate-limiting.md new file mode 100644 index 0000000000..586caa756e --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/api-conventions/rate-limiting.md @@ -0,0 +1,69 @@ +--- +html: rate-limiting.html +parent: api-conventions.html +blurb: パブリックAPIがどのようにクライアントのリクエスト数を制限しているかについての説明です。 +labels: + - コアサーバー +--- +# レート制限 + +`rippled`サーバはAPIクライアントが公開APIにリクエストできるレートを制限できます。レート制限はクライアントのIPアドレスに基づいて行われるため、[ネットワークアドレス変換](https://ja.wikipedia.org/wiki/ネットワークアドレス変換)の背後にいるクライアントは公開IPアドレスに基づく制限を共有します。 + +**ヒント:** レート制限は、クライアントが[管理者](get-started-using-http-websocket-apis.html#管理者アクセス権限)として接続されているときには適用されません + +クライアントがレート制限に近づいている場合、サーバーは[APIレスポンス](response-formatting.html)のトップレベルにフィールド`"warning": "load"`というフィールドを[APIレスポンス](response-formatting.html)のトップレベルに追加します。この警告はすべてのレスポンスに追加されるわけではありませんが、サーバはクライアントを切断する前に何度かこのような警告を送ることがあります。 + +クライアントがレート制限を超えると、サーバーはそのクライアントを切断し、しばらくの間、クライアントのAPIアドレスからの要求を受け付けません。WebSocket APIとJSON-RPC APIでは、異なる切断メッセージを使用します。 + +## WebSocket APIの切断メッセージ + +WebSocket APIの場合、サーバは接続を閉じ、切断メッセージとコードを提供します。これらのメッセージにアクセスする方法は、WebSocket クライアントの実装に依存します。例えば、[Node.js ws ライブラリ](https://github.com/websockets/ws)を使用する場合、次のコードは切断時に切断理由を表示します。 + +```js +const WebSocket = require('ws') +const ws = new WebSocket('ws://localhost:6007/') +ws.on('close', (code,reason) => { + console.log("Disconnected. \ncode: ", code, "\nreason: ", reason) +}) + +// If rate limited, prints: +// Disconnected. +// code: 1008 +// reason: threshold exceeded +``` + +レート制限のために接続が切断された場合、切断コードは`1008`で、切断メッセージは`threshold exceeded`という文字列になります。 + +## JSON-RPCのレート制限エラー + +JSON-RPC APIリクエストの場合、クライアントがレート制限を超えると、サーバーはHTTPステータスコード**503 Service Unavailable**でレスポンスします。このレスポンスには、サーバに負荷がかかっていることを示すテキスト(JSONではありません)の本文が含まれます。 + +```text +503 Service Unavailable + +Server is overloaded +``` + +## リクエストあたりのレート +[[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/resource/Fees.h "ソース") + +サーバは時間の経過とともに行われるリクエストの数に基づいてクライアントの使用率を計算し、サーバがリクエストに応答するためにどれだけの作業をしなければならないかに基づいて、異なるタイプのリクエストに重みをつけます。[subscribeメソッド][]と[path_findメソッド][]に対するサーバからの後続メッセージもクライアントの使用率にカウントされます。 + +使用率は時間とともに指数関数的に低下するため、リクエストを自動的に行わないクライアントは、数秒から数分後にアクセスが回復します。 + +## 関連項目 + +- **コンセプト:** + - [`rippled`サーバ](xrpl-servers.html) + - [ソフトウェアエコシステム](software-ecosystem.html) +- **チュートリアル:** + - [XRP Ledger APIの使用開始](get-started-using-http-websocket-apis.html) + - [rippledのトラブルシューティング](troubleshoot-the-rippled-server.html) +- **リファレンス:** + - [rippled APIリファレンス](http-websocket-apis.html) + - [エラーのフォーマット](error-formatting.html) + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/peer-port-methods/health-check.md b/content/@i18n/ja/references/http-websocket-apis/peer-port-methods/health-check.md new file mode 100644 index 0000000000..929266666f --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/peer-port-methods/health-check.md @@ -0,0 +1,118 @@ +--- +html: health-check.html +parent: peer-port-methods.html +blurb: サーバの状態を報告するための特別なAPIメソッドです。 +labels: + - コアサーバー +--- +# ヘルスチェック +[[ソース]](https://github.com/XRPLF/rippled/blob/de0c52738785de8bf837f9124da65c7905e7bb5a/src/ripple/overlay/impl/OverlayImpl.cpp#L1084-L1168 "ソース") + +ヘルスチェックは、個々の`rippled`サーバの状態を報告するための特別な[peer portメソッド](peer-port-methods.html)です。このメソッドは、自動化された監視において、機能停止を認識し、サーバの再起動のような自動または手動による介入を促すために使用することを意図しています。[新規: rippled 1.6.0][] + +このメソッドは、複数の情報をチェックして、一般に正常とみなされる範囲にあるかどうかを確認します。すべての情報が正常な範囲にある場合、このメソッドは、サーバが正常であることを報告します。いずれかの情報が正常な範囲外の場合、このメソッドは、サーバが正常でないことを報告し、正常でない情報を報告します。 + +情報によっては、急速に正常範囲から外れる情報もあるため、ヘルスチェックが複数回連続して失敗しない限り、アラートを発生させないようにしてください。 + +**注記:** ヘルスチェックは[peer portメソッド](peer-port-methods.html)であるため、[スタンドアロンモード][]でサーバをテストしているときは利用できません。 + + +## リクエストのフォーマット + +ヘルスチェック情報をリクエストするには、以下のHTTPリクエストを行ってください。 + +- **プロトコル:** https +- **HTTPメソッド:** GET +- **ホスト:** (任意の`rippled`サーバ(ホスト名またはIPアドレスによる)) +- **ポート:** (`rippled`サーバがピアプロトコルを使用するポート番号、通常は51235です。) +- **パス:** `/health` +- **セキュリティ:** ほとんどの`rippled`サーバはリクエストに応答するために自己署名証明書を使います。デフォルトでは、(Webブラウザを含む)ほとんどのツールは、そのようなレスポンスは信頼できないとしてフラグを立てたりブロックしたりします。これらのサーバからの応答を表示するには、証明書のチェックを無視しなければなりません (たとえば、cURLを使用している場合は`--insecure`フラグを追加します)。 + + + +## レスポンスの例 + + + +*Healthy* + +```json +HTTP/1.1 200 OK +Server: rippled-1.6.0-b8 +Content-Type: application/json +Connection: close +Transfer-Encoding: chunked + +{ + "info": {} +} +``` + +*Warning* + +```json +HTTP/1.1 503 Service Unavailable +Server: rippled-1.6.0 +Content-Type: application/json +Connection: close +Transfer-Encoding: chunked + +{ + "info": { + "server_state": "connected", + "validated_ledger": -1 + } +} +``` + +*Critical* + +```json +HTTP/1.1 500 Internal Server Error +Server: rippled-1.6.0 +Content-Type: application/json +Connection: close +Transfer-Encoding: chunked + +{ + "info": { + "peers": 0, + "server_state": "disconnected", + "validated_ledger":-1 + } +} +``` + + + +## レスポンスのフォーマット + +レスポンスのHTTPステータスコードは、サーバの状態を示します。 + +| ステータスコード | 現在の状態 | 説明 | +|:------------------------------|:--------------|:-----------------------------| +| **200 OK** | Healthy | すべての指標は許容範囲内です。 | +| **503 Service Unavailable** | Warning | 1つ以上の指標が警告範囲にあります。手動介入が必要な場合と不要な場合があります。 | +| **500 Internal Server Error** | Critical | 1つ以上のメトリクスが深刻な範囲にあります。おそらく手動による修正が必要な深刻な問題があります。 | + +レスポンスボディは JSON オブジェクトで、トップレベルに `info`オブジェクトが 1 つあります。`info`オブジェクトには、warningまたはcriticalの範囲にある指標ごとの値が含まれます。正常な範囲にある指標は省略されるため、完全に正常なサーバは空のオブジェクトを持ちます。 + +`info`オブジェクトは以下のフィールドを含むことができます。 + +| `Field` | 値 | 説明 | +|:--------------------|:------|:---------------------------------------------| +| `amendment_blocked` | 真偽値 | _(省略される場合があります)_ `true`の場合、サーバは[amendmentブロック](amendments.html#amendment-blocked-servers)状態で、ネットワークとの同期を維持するためにアップグレードする必要があります。この状態は非常に重要です。サーバがAmendmentブロックされていない場合、このフィールドは省略されます。 | +| `load_factor` | 数値 | _(省略される場合があります)_ サーバが受けている全体的な負荷の指標。I/O、CPU、メモリの制限が反映されます。負荷率が100以上の場合はwarning、1000以上の場合はcriticalです。 | +| `peers` | 数値 | _(省略される場合があります)_ このサーバが接続している[ピアサーバ](peer-protocol.html)の数。7つ以下のピアに接続されている場合はwarning、0つのピアに接続されている場合はcriticalです。 | +| `server_state` | 文字列 | _(省略される場合があります)_ 現在の[サーバの状態](rippled-server-states.html)。サーバの状態が`tracking`、`syncing`、`connected`の場合はwarningです。サーバが`disconnected`状態の場合はcriticalです。 | +| `validated_ledger` | 数値 | _(省略される場合があります)_ レジャーが最後に[コンセンサス](consensus.html)によって検証されてから何秒経ったかを表します。検証されたレジャーがない場合([サーバ起動時の初期同期期間](server-doesnt-sync.html#normal-syncing-behavior))、この値は`-1`となり、warningとみなされます。また、最後に検証されたレジャーが少なくとも7秒前であればwarningとなり、最後に検証されたレジャーが少なくとも20秒前であればcriticalとなります。 | + +## 関連項目 + +ヘルスチェックの結果を判断するガイダンスについては、[ヘルスチェックの導入](health-check-interventions.html)をご覧ください。 + + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/peer-port-methods/validator-list.md b/content/@i18n/ja/references/http-websocket-apis/peer-port-methods/validator-list.md new file mode 100644 index 0000000000..6322662820 --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/peer-port-methods/validator-list.md @@ -0,0 +1,129 @@ +--- +html: validator-list.html +parent: peer-port-methods.html +blurb: 推奨バリデータリストを共有するための特別なAPIメソッド。 +labels: + - コアサーバー + - ブロックチェーン +--- +# バリデータリストメソッド + +バリデータリストメソッドは特別なAPIエンドポイントで、`rippled`サーバが現在使用している信頼できるバリデータリストを取得します。これは多くの場合、サーバが信頼するバリデータの正確なリストを表します。[新規: rippled 1.5.0][]. + +[ピアクローラ](peer-crawler.html)と同様に、バリデータリストメソッドはデフォルトで非root権限で[ピアプロトコル](peer-protocol.html)ポートから利用できます。 + +## リクエストフォーマット + +バリデータリストの情報をリクエストするには、以下のHTTPリクエストを実行します。 + +- **プロトコル:** https +- **HTTPメソッド:** GET +- **ホスト:** (任意の`rippled`サーバ(ホスト名またはIPアドレス)) +- **ポート:** (`rippled`サーバがピアプロトコルを使用するポート番号) +- **パス:** `/vl/{public_key}` + + `{public_key}`はリスト発行者の公開鍵で、16進数です。この鍵は発行者を識別し、リストの内容が真正で完全であることを確認するためにも使われます。 + +- **セキュリティ:** ほとんどの`rippled`サーバはリクエストに応答するために自己署名したTLS証明書を使います。デフォルトでは、(Webブラウザを含む)ほとんどのツールはそのようなレスポンスが信頼できないものであるとしてフラグを立てたりブロックしたりします。これらのサーバからの応答を表示するには、証明書のチェックを無視しなければなりません(たとえばcURLを使う場合は`--insecure`フラグを追加します)。 + + バリデータリストの内容は別の暗号鍵で署名されているので、使用するTLS証明書にかかわらずその完全性を検証できます。 + + +## レスポンスのフォーマット + +レスポンスにはステータスコード **200 OK** とメッセージボディにJSONオブジェクトがあります。レスポンスボディは、のようなバリデータリストサイトで使われる書式に非常によく似ています。 + +JSONオブジェクトには以下のフィールドがあります。 + +| `Field` | 値 | 説明 | +|:-----------------|:------|:-------------------------------------------------| +| `manifest` | 文字列 | リスト発行者の[マニフェストデータ](#マニフェストデータ)をbase64または16進数で表します。 | +| `blob` | 文字列 | バリデータリストを表すBase64エンコードされたJSONデータ。 | +| `signature` | 文字列 | 16進数で表した`blob`データの署名。 | +| `version` | 数値 | このオブジェクトが使用するバリデータリストプロトコルのバージョン。現在のバージョンは **1** です。それ以上のバージョン番号は、バリデータリストプロトコルの以前のバージョンとの下位互換性を表します。 | +| `public_key` | 文字列 | このバリデータリストのデータを検証するために使用する公開鍵。これは32バイトのEd25519公開鍵で、先頭に`0xED`というバイトが付きます。[新規: rippled 1.7.0][]. | + +### マニフェストデータ +[[ソース]](https://github.com/XRPLF/rippled/blob/97712107b71a8e2089d2e3fcef9ebf5362951110/src/ripple/app/misc/impl/Manifest.cpp#L43-L66 "ソース") + +"マニフェスト"には、コンセンサスプロセスに関与する個人または組織(***バリデータ**または**リスト発行者**)を一意に識別する情報が含まれます。バリデータのマニフェストには、その[バリデータのトークン](run-rippled-as-a-validator.html#3-enable-validation-on-your-rippled-server)の _公開_ 情報が含まれます。リスト発行者のマニフェストはリスト発行者に関する情報を提供します。どちらも通常、XRP Ledgerの標準的な[バイナリフォーマット](serialization.html)でバイナリにエンコードされます。(マニフェストの標準的なJSON形式はありません)。 + +マニフェストの主な目的の1つは、バリデータ鍵のローテーションです。バリデータはそのエフェメラル鍵ペアを変更すると、新しいエフェメラル公開鍵を共有するために新しいマニフェストを発行します。バリデータは[コンセンサスプロセス](consensus.html)の一部としてバリデーションに署名するためにエフェメラル鍵ペアを使用し、新しいマニフェストに署名するためにのみマスター鍵ペアを使用します。(マニフェストは、[バリデータ管理者が`rippled.cfg`設定ファイルに追加する](run-rippled-as-a-validator.html#3-enable-validation-on-your-rippled-server)プライベートデータと一緒にバリデータトークンに組み込まれます)。 + +マニフェストでエンコードされるデータは次のとおりです。 + +| `Field` | 内部の型 | 説明 | +|:--------------------|:--------------|:-----------------------------------------| +| `sfPublicKey` | Blob | この個人または組織を一意に識別するマスター公開鍵。これは33バイトのsecp256k1公開鍵か、32バイトのEd25519公開鍵の前に`0xED`というバイトを付加したものになります。 | +| `sfMasterSignature` | Blob | マスターキーペアからの、このマニフェストデータの署名。これにより、マニフェストの信頼性が証明されます。 | +| `sfSequence` | UInt32 | このマニフェストのシーケンス番号。番号が大きいほど新しいマニフェストであり、同じマスター公開鍵からの古いマニフェストはすべて無効になります。 | +| `sfVersion` | UInt16 | 使用されているマニフェスト形式を示すバージョン番号。数値が高いほど、以前のマニフェスト形式と比較して、変更点を含む新しいマニフェスト形式であることを示します。 | +| `sfDomain` | Blob | _(省略可)_ ASCIIエンコードされた、この個人または組織が所有するドメイン名。 | +| `sfSigningPubKey` | Blob | _(省略可)_ この個人または組織が現在使用している鍵ペアのエフェメラル公開鍵。これは33バイトのsecp256k1公開鍵でなければなりません。 | +| `sfSignature` | Blob | _(省略可)_ エフェメラルキーペアからのこのマニフェストデータの署名。 | + +`sfMasterSignature`と`sfSignature`の署名は、署名フィールド(`sfMasterSignature`と`sfSignature`)自体を除いて、マニフェストの[シリアライズされた](serialization.html)バイナリデータに署名することで作成されます。 + + +### Blobデータ + +base64から`blob`をデコードすると、以下のフィールドを持つJSONオブジェクトになります。 + +| `Field` | 値 | 解説 | +|:-------------|:-----|:-------------------------------------------------------| +| `sequence` | 数値 | このリスト固有のシーケンス番号。一度に最新のリストのみが有効です。 | +| `expiration` | 数値 | このリストが期限切れになる時間([Rippleエポック以降の経過秒数][])。 | +| `validators` | 配列 | 推奨されるバリデータのリスト。 | + +`validators`配列の各メンバーは以下のフィールドを持っています。 + +| `Field` | 値 | 説明 | +|:------------------------|:------|:------------------------------------------| +| `validation_public_key` | 文字列 | このバリデータを一意に識別するマスター公開鍵。 | +| `manifest` | 文字列 | このバリデータの[マニフェストデータ](#マニフェストデータ)をbase64または16進数で表します。 | + + +#### デコードされたBlobの例 + +```json +{% include '_api-examples/vl/vl-blob.json' %} +``` + +## 例 + +リクエスト: + + + +*HTTP* + +``` +GET https://localhost:51235/vl/ED2677ABFFD1B33AC6FBC3062B71F1E8397C1505E1C42C64D11AD1B28FF73F4734 +``` + +*cURL* + +``` +curl --insecure https://localhost:51235/vl/ED2677ABFFD1B33AC6FBC3062B71F1E8397C1505E1C42C64D11AD1B28FF73F4734 +``` + + + +レスポンス: + +```json +200 OK + +{% include '_api-examples/vl/vl.json' %} +``` + + +## 関連項目 + +- [ピアプロトコル](peer-protocol.html) +- [コンセンサス](consensus.html) + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_currencies.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_currencies.md index bcfe1324e9..7393938c87 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_currencies.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_currencies.md @@ -17,7 +17,7 @@ labels: *WebSocket* -``` +```json { "command": "account_currencies", "account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", @@ -28,7 +28,7 @@ labels: *JSON-RPC* -``` +```json { "method": "account_currencies", "params": [ @@ -50,12 +50,12 @@ labels: | `Field` | 型 | 説明 | |:---------------|:---------------------------|:-------------------------------| -| `account` | 文字列 | アカウントの一意のIDであり、通常はアカウントの[アドレス][]です。 | +| `account` | 文字列 | このアカウントが送受信できる通貨を検索します。[更新: rippled 1.11.0][] | | `strict` | ブール値 | _(省略可)_ trueの場合は、アカウントパラメーターにアドレスまたは公開鍵だけを受け入れます。デフォルトではfalseです。 | -| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]を参照してください) | -| `ledger_index` | 文字列または符号なし整数 | _(省略可)_ 使用する[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]を参照してください) | +| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]をご覧ください) | +| `ledger_index` | 文字列または符号なし整数 | _(省略可)_ 使用する[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]をご覧ください) | -以下のフィールドは廃止予定であるため、指定しないでください。`account_index`. +次のフィールドは廃止予定であるため、指定しないでください。`account_index`. ## 応答フォーマット @@ -155,4 +155,5 @@ labels: * `lgrNotFound` - `ledger_hash`または`ledger_index`で指定したレジャーが存在しないか、存在してはいるもののサーバーが保有していません。 +{% include '_snippets/rippled_versions.md' %} {% include '_snippets/rippled-api-links.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_info.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_info.md index 08222cce81..01de45920b 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_info.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_info.md @@ -19,12 +19,11 @@ account_info要求の例: *WebSocket* -``` +```json { "id": 2, "command": "account_info", - "account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", - "strict": true, + "account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", "ledger_index": "current", "queue": true } @@ -32,13 +31,12 @@ account_info要求の例: *JSON-RPC* -``` +```json { "method": "account_info", "params": [ { "account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", - "strict": true, "ledger_index": "current", "queue": true } @@ -48,9 +46,9 @@ account_info要求の例: *コマンドライン* -``` -#Syntax: account_info account [ledger_index|ledger_hash] [strict] -rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true +```sh +#Syntax: account_info account [ledger_index|ledger_hash] +rippled account_info rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn validated ``` @@ -59,16 +57,15 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true 要求には以下のパラメーターが含まれます。 -| `Field` | 型 | 説明 | -|:---------------|:---------------------------|:-------------------------------| -| `account` | 文字列 | アカウントの一意のIDであり、最もよく使用されるのはアカウントの[アドレス][]です。 | -| `strict` | ブール値 | (省略可能、デフォルトはFalse)Trueに設定すると、`account`フィールドに指定できる項目は公開鍵またはXRP Ledgerアドレスのみになります。 | -| `ledger_hash` | 文字列 | _(省略可能)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]を参照してください。) | -| `ledger_index` | 文字列または符号なし整数 | _(省略可能)_ 使用するレジャーのシーケンス番号、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]を参照してください。) | -| `queue` | ブール値 | _(省略可能)_ `true`にして[FeeEscalation Amendment][]を有効にすると、このアカウントに関連するキューに入れられたトランザクションについてのステータスも返されます。これを使用できるのは、現在開いているレジャーのデータを問い合わせる場合のみです。[新規: rippled 0.33.0][] | -| `signer_lists` | ブール値 | _(省略可能)_`true`にして[MultiSign Amendment][]を有効にすると、このアカウントに関連するすべての[SignerListオブジェクト](signerlist.html)も返されます。[新規: rippled 0.31.0][] | +| `Field` | 型 | 必須? | 説明 | +|:---------------|:---------------------------|:------|:-------------------------------| +| `account` | 文字列 - [アドレス][] | はい | 検索するアカウント。[更新: rippled 1.11.0][] | +| `ledger_hash` | 文字列 | いいえ | 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]をご覧ください。) | +| `ledger_index` | 文字列または整数 | いいえ | 使用するレジャーのシーケンス番号、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]をご覧ください。) | +| `queue` | 真偽値 | いいえ | `true`の場合、このアカウントに関連するキューに入れられたトランザクションについてのステータスも返されます。これを使用するのは、現在のオープンレジャーのデータを問い合わせる場合のみです。 | +| `signer_lists` | 真偽値 | いいえ | `true`の場合、このアカウントに関連するすべての[SignerListオブジェクト](signerlist.html)も返されます。 | -次のフィールドは廃止予定のため、指定しないでください。`ident`、`ledger`。 +次のフィールドは廃止予定のため、指定しないでください。`ident`、`ledger`,`strict` ## 応答フォーマット @@ -78,7 +75,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true *WebSocket* -``` +```json { "id": 5, "status": "success", @@ -128,7 +125,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true *JSON-RPC* -``` +```json { "result": { "account_data": { @@ -174,39 +171,83 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true } ``` +*Commandline* + +```json +{ + "result" : { + "account_data" : { + "Account" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", + "Balance" : "9986", + "Flags" : 1114112, + "LedgerEntryType" : "AccountRoot", + "OwnerCount" : 0, + "PreviousTxnID" : "0705FE3F52057924C288296EF0EBF668E0C1A3646FBA8FAF9B73DCC0A797B4B2", + "PreviousTxnLgrSeq" : 51948740, + "RegularKey" : "rhLkGGNZdjSpnHJw4XAFw1Jy7PD8TqxoET", + "Sequence" : 192220, + "index" : "92FA6A9FC8EA6018D5D16532D7795C91BFB0831355BDFDA177E86C8BF997985F" + }, + "ledger_hash" : "8169428EDF7F046F817CE44F5F1DF23AD9FAEFFA2CBA7645C3254D66AA79B46E", + "ledger_index" : 56843712, + "status" : "success", + "validated" : true + } +} +``` + 応答は[標準フォーマット][]に従い、要求されたアカウントとそのデータ、アカウントの適用先レジャーが結果として表示されます。以下のフィールドが含まれます。 +| `Field` | 型 | 説明 | +|:-----------------------|:-----------|:------------------------------------------| +| `account_data` | オブジェクト | このアカウントの情報を含む[AccountRootレジャーオブジェクト](accountroot.html)がレジャーに保管されているとおりに表示されます。 | +| `account_flags` | オブジェクト | アカウントの`Flags`フィールドに基づく、アカウントのフラグ情報(下記参照)。 [新規: rippled 1.11.0][] | +| `signer_lists` | 配列 | (要求に`signer_lists`が指定されていて、少なくとも1つのSignerListがアカウントに関連する場合を除いて省略)[マルチシグ](multi-signing.html)用にアカウントに関連付けられた[SignerListレジャーオブジェクト](signerlist.html)の配列。アカウントが所有できるSignerListは最大1つであるため、この配列のメンバーは存在するとすれば、1メンバーのみです。 | +| `ledger_current_index` | 整数 | (`ledger_index`が代わりに指定されている場合は省略) この情報を取得したときに使用されていた最新のレジャーのシーケンス番号。この情報には、これより新しいレジャーの変更は一切含まれません。 | +| `ledger_index` | 整数 | (`ledger_current_index`が代わりに指定されている場合は省略) この情報を取得したときに使用されていたレジャーのシーケンス番号。この情報には、これより新しいレジャーの変更は一切含まれません。 | +| `queue_data` | オブジェクト | (`queue`が`true`と指定され、現在開いているレジャーを問い合わせている場合を除いて省略) このアカウントによって送信された[キューに入れられたトランザクション](transaction-cost.html#キューに入れられたトランザクション)についての情報。この情報にはローカル`rippled`サーバの状態が示されますが、コンセンサスネットワーク内の他のサーバとは異なる場合があります。示される値はキューメカニズムによって「大まかに」計算されるため、一部のフィールドは省略される場合があります。 | +| `validated` | 真偽値 | このデータが検証済みのレジャーバージョンのものである場合はTrueです。省略されているかFalseが設定されている場合、このデータは最終のものではありません。[新規: rippled 0.26.0][] | + +`account_flags`フィールドは以下のネストしたフィールドを含みます: + | `Field` | 型 | 説明 | |:-----------------------|:--------|:------------------------------------------| -| `account_data` | オブジェクト | このアカウントの情報を含む[AccountRootレジャーオブジェクト](accountroot.html)がレジャーに保管されているとおりに表示されます。 | -| `signer_lists` | 配列 | (要求に`signer_lists`が指定されていて、少なくとも1つのSignerListがアカウントに関連する場合を除いて省略されます。)[マルチシグ](multi-signing.html)用にアカウントに関連付けられた[SignerListレジャーオブジェクト](signerlist.html)の配列。アカウントが所有できるSignerListは最大1つであるため、この配列のメンバーは存在するとすれば、1メンバーのみです。[新規: rippled 0.31.0][] | -| `ledger_current_index` | 整数 | (`ledger_index`が代わりに指定されている場合は省略されます。)この情報を取得したときに使用されていた最新のレジャーのシーケンス番号。この情報には、これより新しいレジャーの変更は一切含まれません。 | -| `ledger_index` | 整数 | (`ledger_current_index`が代わりに指定されている場合は省略されます。)この情報を取得したときに使用されていたレジャーのシーケンス番号。この情報には、これより新しいレジャーの変更は一切含まれません。 | -| `queue_data` | オブジェクト | (`queue`が`true`と指定され、現在開いているレジャーを問い合わせている場合を除いて省略されます。)このアカウントによって送信された[キューに入れられたトランザクション](transaction-cost.html#キューに入れられたトランザクション)についての情報。この情報にはローカル`rippled`サーバーの状態が示されますが、コンセンサスネットワーク内の他のサーバーとは異なる場合があります。示される値はキューイングメカニズムによって「大まかに」計算されるため、一部のフィールドは省略される場合があります。 | -| `validated` | ブール値 | このデータが検証済みのレジャーバージョンのものである場合はTrueです。省略されているかFalseが設定されている場合、このデータは最終のものではありません。[新規: rippled 0.26.0][] | +| `defaultRipple` | 真偽値 | `true`の場合、アカウントはデフォルトでトラストラインの[rippling](rippling.html)を許可します。 | +| `depositAuth` | 真偽値 | `true`の場合、このアカウントは[Deposit Authorization](depositauth.html)を使用しており、未知の第三者からの入金を受け付けていません。 | +| `disableMasterKey` | 真偽値 | `true`の場合、アカウントの[マスターキーペア](cryptographic-keys.html)が無効になっています。 | +| `disallowIncomingCheck` | 真偽値 | `true`の場合、このアカウントは第三者からの[Check](checks.html)の送信を許可してません。 _([DisallowIncoming amendment][]が必要です)_ | +| `disallowIncomingNFTokenOffer` | 真偽値 | `true`の場合、このアカウントは第三者からの[NFT売買オファー](non-fungible-token-transfers.html)の作成を許可してません。 _([DisallowIncoming amendment][]が必要です)_ | +| `disallowIncomingPayChan` | 真偽値 | `true`の場合、このアカウントは第三者からの[ペイメントチャンネル](payment-channels.html)の作成を許可していません。 _([DisallowIncoming amendment][]が必要です)_ | +| `disallowIncomingTrustline` | 真偽値 | `true`の場合、このアカウントは第三者が[トラストライン](trust-lines-and-issuing.html)を作ることを許可していません。 _([DisallowIncoming amendment][]が必要です)_ | +| `disallowIncomingXRP` | 真偽値 | `true`の場合、このアカウントは他者からXRPを受け取りたくありません。(これは参考情報であり、プロトコルレベルでは強制されません) | +| `globalFreeze` | 真偽値 | `true`の場合、このアカウントによって発行されたすべてのトークンは現在凍結されています。 | +| `noFreeze` | 真偽値 | `true`の場合、このアカウントは個々のトラストラインを凍結したり、グローバル凍結を行う機能を永久に放棄しています。詳細は[No Freeze](freezes.html#no-freeze)をご覧ください。 | +| `passwordSpent` | 真偽値 | `false`の場合、このアカウントはトランザクションコスト0の特別な[キーリセットトランザクション](transaction-cost.html#key-resetトランザクション)を送信できます。プロトコルはこのフラグを自動的にオン/オフします。 | +| `requireAuthorization` | 真偽値 | `true`の場合、このアカウントは[認可トラストライン](authorized-trust-lines.html)を使って、発行するトークンを保持できる人を制限しています。 | +| `requireDestinationTag` | 真偽値 | `true`の場合、このアカウントは受け取るすべての支払いに[宛先タグ](require-destination-tags.html)を要求しています。 | `queue_data`パラメーターが存在する場合、以下のフィールドが含まれます。 -| `Field` | 型 | 説明 | +| `Field` | 型 | 説明 | |:------------------------|:--------|:-----------------------------------------| -| `txn_count` | 整数 | このアドレスからキューに入れられたトランザクションの数。 | -| `auth_change_queued` | ブール値 | (省略される場合があります)キュー内のトランザクションがこのアドレスの[トランザクションの承認方法](transactions.html#トランザクションの承認)を変更するかどうかを示します。`true`の場合、トランザクションが実行されているかキューから除外されるまで、このアドレスはトランザクションをこれ以上キューに入れることができません。 | -| `lowest_sequence` | 整数 | (省略される場合があります)このアドレスによってキューに入れられたトランザクションのうち最も低い[シーケンス番号][]。 | -| `highest_sequence` | 整数 | (省略される場合があります)このアドレスによってキューに入れられたトランザクションのうち最も高い[シーケンス番号][]。 | -| `max_spend_drops_total` | 文字列 | (省略される場合があります)キュー内のすべてのトランザクションが利用可能なXRPを最大限消費する場合に、このアドレスから差し引くことができる[XRPのdrop数][]を示す整数の金額。 | -| `transactions` | 配列 | (省略される場合があります)このアドレスからキューに入れられた各トランザクションについての情報。 | +| `txn_count` | 整数 | このアドレスからキューに入れられたトランザクションの数。 | +| `auth_change_queued` | 真偽値 | (省略される場合があります)キュー内のトランザクションがこのアドレスの[トランザクションの承認方法](transactions.html#トランザクションの承認)を変更するかどうかを示します。`true`の場合、トランザクションが実行されているかキューから除外されるまで、このアドレスはトランザクションをこれ以上キューに入れることができません。 | +| `lowest_sequence` | 整数 | (省略される場合があります)このアドレスによってキューに入れられたトランザクションのうち最も低い[シーケンス番号][]。 | +| `highest_sequence` | 整数 | (省略される場合があります)このアドレスによってキューに入れられたトランザクションのうち最も高い[シーケンス番号][]。 | +| `max_spend_drops_total` | 文字列 | (省略される場合があります)キュー内のすべてのトランザクションが利用可能なXRPを最大限消費する場合に、このアドレスから差し引くことができる[XRPのdrop数][]を示す整数の金額。 | +| `transactions` | 配列 | (省略される場合があります)このアドレスからキューに入れられた各トランザクションについての情報。 | -`transactions`配列内の各オブジェクト(存在する場合)には、以下のフィールドのいずれかまたはすべてが含まれます。 +`queue_data`の`transactions`配列内の各オブジェクト(存在する場合)には、以下のフィールドのいずれかまたはすべてが含まれます。 -| `Field` | 型 | 説明 | +| `Field` | 型 | 説明 | |:------------------|:--------|:-----------------------------------------------| -| `auth_change` | ブール値 | このトランザクションがこのアドレスの[トランザクション承認の方法](transactions.html#トランザクションの承認)を変更するかどうかを示します。 | -| `fee` | 文字列 | このトランザクションの[トランザクションコスト](transaction-cost.html)([XRPのdrop数][])。 | -| `fee_level` | 文字列 | このタイプのトランザクションの最少コストと比較した、このトランザクションのトランザクションコスト([手数料レベル][])。 | -| `max_spend_drops` | 文字列 | このトランザクションで送信または消却できる[XRPのdrop数][]の最高額。 | -| `seq` | 整数 | このトランザクションの[シーケンス番号][]。 | +| `auth_change` | 真偽値 | このトランザクションがこのアドレスの[トランザクション承認の方法](transactions.html#トランザクションの承認)を変更するかどうかを示します。 | +| `fee` | 文字列 | このトランザクションの[トランザクションコスト](transaction-cost.html)([XRPのdrop数][])。 | +| `fee_level` | 文字列 | このタイプのトランザクションの最少コストと比較した、このトランザクションのトランザクションコスト([手数料レベル][])。 | +| `max_spend_drops` | 文字列 | このトランザクションで送信または消却できる[XRPのdrop数][]の最高額。 | +| `seq` | 整数 | このトランザクションの[シーケンス番号][]。 | ## 考えられるエラー diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md index 13c16994eb..4edabbc899 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md @@ -18,7 +18,7 @@ labels: *WebSocket* -``` +```json { "id": 1, "command": "account_lines", @@ -28,7 +28,7 @@ labels: *JSON-RPC* -``` +```json { "method": "account_lines", "params": [ @@ -39,20 +39,27 @@ labels: } ``` +*Commandline* + +```sh +#Syntax: account_lines [] [|] +rippled account_lines r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 +``` + [試してみる >](websocket-api-tool.html#account_lines) 要求には以下のパラメーターを指定できます。 -| `Field` | 型 | 説明 | -|:---------------|:-------------------------------------------|:---------------| -| `account` | 文字列 | アカウントの一意のIDであり、通常はアカウントの[アドレス][]です。 | -| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]を参照してください) | -| `ledger_index` | 文字列または符号なし整数 | _(省略可)_ 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]を参照してください) | -| `peer` | 文字列 | _(省略可)_ 2番目のアカウントの[アドレス][]。指定されている場合は、2つのアカウントを結ぶトラストラインだけが出力されます。 | -| `limit` | 整数 | (省略可、デフォルト値は可変)取得するトラストラインの数を制限します。サーバーはこの値を受け入れる必要はありません。10以上400以下の範囲で値を指定する必要があります。[新規: rippled 0.26.4][] | -| `marker` | [マーカー][] | _(省略可)_ 以前にページネーションされた応答の値。その応答を停止した箇所からデータの取得を再開します。[新規: rippled 0.26.4][] | +| `Field` | 型 | 説明 | +|:--------------|:---------------|:---------------| +| `account` | 文字列 | トラストラインを検索するアカウント。 | +| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]をご覧ください) | +| `ledger_index` | 文字列または整数 | _(省略可)_ 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]をご覧ください) | +| `peer` | 文字列 | _(省略可)_ 2番目のアカウントの[アドレス][]。指定されている場合は、2つのアカウントを結ぶトラストラインだけが出力されます。 | +| `limit` | 整数 | (省略可、デフォルト値は可変)取得するトラストラインの数を制限します。サーバはこの値を受け入れる必要はありません。10以上400以下の範囲で値を指定する必要があります。 | +| `marker` | [マーカー][] | _(省略可)_ 以前にページネーションされた応答の値。その応答を停止した箇所からデータの取得を再開します。 | 以下のパラメーターは廃止予定であり、今後予告なしに削除される可能性があります。`ledger`および`peer_index`。 @@ -64,7 +71,7 @@ labels: *WebSocket* -``` +```json { "id": 1, "status": "success", @@ -109,8 +116,9 @@ labels: *JSON-RPC* -``` +```json 200 OK + { "result": { "account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", @@ -151,36 +159,282 @@ labels: } ``` +*コマンドライン* +```json +{ + "result" : { + "account" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "ledger_current_index" : 56867265, + "lines" : [ + { + "account" : "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z", + "balance" : "0", + "currency" : "ASP", + "limit" : "0", + "limit_peer" : "10", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z", + "balance" : "0", + "currency" : "XAU", + "limit" : "0", + "limit_peer" : "0", + "no_ripple" : true, + "no_ripple_peer" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q", + "balance" : "5", + "currency" : "USD", + "limit" : "5", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rHpXfibHgSb64n8kK9QWDpdbfqSpYbM9a4", + "balance" : "481.992867407479", + "currency" : "MXN", + "limit" : "1000", + "limit_peer" : "0", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun", + "balance" : "0.793598266778297", + "currency" : "EUR", + "limit" : "1", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK", + "balance" : "0", + "currency" : "CNY", + "limit" : "3", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E", + "balance" : "1.336889190631542", + "currency" : "DYM", + "limit" : "3", + "limit_peer" : "0", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "balance" : "0.3488146605801446", + "currency" : "CHF", + "limit" : "0", + "limit_peer" : "0", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "balance" : "0", + "currency" : "BTC", + "limit" : "3", + "limit_peer" : "0", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "balance" : "11.68225001668339", + "currency" : "USD", + "limit" : "5000", + "limit_peer" : "0", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rpgKWEmNqSDAGFhy5WDnsyPqfQxbWxKeVd", + "balance" : "-0.00111", + "currency" : "BTC", + "limit" : "0", + "limit_peer" : "10", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rBJ3YjwXi2MGbg7GVLuTXUWQ8DjL7tDXh4", + "balance" : "-0.0008744482690504699", + "currency" : "BTC", + "limit" : "0", + "limit_peer" : "10", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun", + "balance" : "0", + "currency" : "USD", + "limit" : "1", + "limit_peer" : "0", + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA", + "balance" : "9.07619790068559", + "currency" : "CNY", + "limit" : "100", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "balance" : "7.292695098901099", + "currency" : "JPY", + "limit" : "0", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z", + "balance" : "0", + "currency" : "AUX", + "limit" : "0", + "limit_peer" : "0", + "no_ripple" : true, + "no_ripple_peer" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X", + "balance" : "0.0004557360418801623", + "currency" : "USD", + "limit" : "1", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "balance" : "12.41688780720394", + "currency" : "EUR", + "limit" : "100", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rfF3PNkwkq1DygW2wum2HK3RGfgkJjdPVD", + "balance" : "35", + "currency" : "USD", + "limit" : "500", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rwUVoVMSURqNyvocPCcvLu3ygJzZyw8qwp", + "balance" : "-5", + "currency" : "JOE", + "limit" : "0", + "limit_peer" : "50", + "no_ripple_peer" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rE6R3DWF9fBD7CyiQciePF9SqK58Ubp8o2", + "balance" : "0", + "currency" : "USD", + "limit" : "0", + "limit_peer" : "100", + "no_ripple_peer" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rE6R3DWF9fBD7CyiQciePF9SqK58Ubp8o2", + "balance" : "0", + "currency" : "JOE", + "limit" : "0", + "limit_peer" : "100", + "no_ripple_peer" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rs9M85karFkCRjvc6KMWn8Coigm9cbcgcx", + "balance" : "0", + "currency" : "015841551A748AD2C1F76FF6ECB0CCCD00000000", + "limit" : "10.01037626125837", + "limit_peer" : "0", + "no_ripple" : true, + "quality_in" : 0, + "quality_out" : 0 + }, + { + "account" : "rEhDDUUNxpXgEHVJtC2cjXAgyx5VCFxdMF", + "balance" : "0", + "currency" : "USD", + "limit" : "0", + "limit_peer" : "1", + "quality_in" : 0, + "quality_out" : 0 + } + ], + "status" : "success", + "validated" : false + } +} +``` + この応答は[標準フォーマット][]に従っており、正常に完了した場合には、アカウントのアドレスとトラストラインオブジェクトの配列が含まれています。具体的には、結果オブジェクトには以下のフィールドが含まれます。 -| `Field` | 型 | 説明 | -|:-----------------------|:---------------------------|:-----------------------| -| `account` | 文字列 | この要求に対応するアカウントの一意の[アドレス][]。トラストラインのための「パースペクティブアカウント」です。 | -| `lines` | 配列 | トラストラインオブジェクトからなる配列。以下で説明します。トラストラインの数が多い場合は、一度に`limit`の数までのトラストラインが返されます。 | -| `ledger_current_index` | 整数 - [レジャーインデックス][] | _(`ledger_hash`または`ledger_index`が指定されている場合は省略)_ この情報の取得時に使用した、現行のオープンレジャーのレジャーインデックス。[新規: rippled 0.26.4-sp1][] | -| `ledger_index` | 整数 - [レジャーインデックス][] | _(`ledger_current_index`が代わりに指定されている場合は省略)_ このデータの取得時に使用されたレジャーバージョンのレジャーインデックス。[新規: rippled 0.26.4-sp1][] | -| `ledger_hash` | 文字列 - [ハッシュ][] | _(省略される場合があります)_ このデータの取得時に使用されたレジャーバージョンの識別用ハッシュ。[新規: rippled 0.26.4-sp1][] | -| `marker` | [マーカー][] | 応答がページネーションされていることを示す、サーバーが定義した値。この値を次のコールに渡して、このコールで終わった箇所から再開します。この後に追加のページがない場合は省略されます。[新規: rippled 0.26.4][] | +| `Field` | 型 | 説明 | +|:-----------------------|:----------------------------|:-----------------------| +| `account` | 文字列 | この要求に対応するアカウントの一意の[アドレス][]。トラストラインのための「パースペクティブアカウント」です。 | +| `lines` | 配列 | トラストラインオブジェクトからなる配列。以下で説明します。トラストラインの数が多い場合は、一度に`limit`の数までのトラストラインが返されます。 | +| `ledger_current_index` | 整数 - [レジャーインデックス][] | _(`ledger_hash`または`ledger_index`が指定されている場合は省略)_ この情報の取得時に使用した、現行のオープンレジャーのレジャーインデックス。 | +| `ledger_index` | 整数 - [レジャーインデックス][] | _(`ledger_current_index`が指定されている場合は省略)_ このデータの取得時に使用されたレジャーバージョンのレジャーインデックス。 | +| `ledger_hash` | 文字列 - [ハッシュ][] | _(省略される場合があります)_ このデータの取得時に使用されたレジャーバージョンの識別用ハッシュ。 | +| `marker` | [マーカー][] | 応答がページネーションされていることを示す、サーバが定義した値。この値を次のコールに渡して、このコールで終わった箇所から再開します。この後に追加のページがない場合は省略されます | 各トラストラインオブジェクトには以下のフィールドの組み合わせが含まれています。 -| `Field` | 型 | 説明 | -|:-----------------|:-----------------|:---------------------------------------| -| `account` | 文字列 | このトラストラインの相手側の一意の[アドレス][]。 | -| `balance` | 文字列 | 現在このラインに対して保留されている残高(数値)の表示。残高がプラスの場合はパースペクティブアカウントがその額を保有しており、マイナスの場合はパースペクティブアカウントがその額を借用しています。 | -| `currency` | 文字列 | このトラストラインが保有できる通貨を示す[通貨コード][]。 | -| `limit` | 文字列 | このアカウントがピアアカウントからの借用を希望する特定の通貨の上限額。 | -| `limit_peer` | 文字列 | 相手側アカウントがパースペクティブアカウントからの借用を希望する特定の通貨の上限額。 | -| `quality_in` | 符号なし整数 | このアカウントが、このトラストラインの入金時残高を評価する際のレート(この数値対10億単位の比率)。(たとえば5億の場合は0.5:1の比率を表します。)特殊なケースとして、0は1:1の比率として扱われます。 | -| `quality_out` | 符号なし整数 | このアカウントが、このトラストラインの出金時残高を評価する際のレート(この数値対10億単位の比率)。(たとえば5億の場合は0.5:1の比率を表します。)特殊なケースとして、0は1:1の比率として扱われます。 | -| `no_ripple` | ブール値 | (省略される場合があります)このアカウントでこのラインに対し[NoRippleフラグ](rippling.html)が有効な場合は、`true`。省略されている場合は、`false`と同じです。 | -| `no_ripple_peer` | ブール値 | (省略される場合があります)ピアアカウントでこのラインに対し[NoRippleフラグ](rippling.html)が有効な場合は`true`。省略されている場合は、`false`と同じです。 | -| `authorized` | ブール値 | (省略される場合があります)このアカウントが[このトラストラインを承認した](authorized-trust-lines.html)場合は、`true`。省略されている場合は、`false`と同じです。 | -| `peer_authorized` | ブール値 | (省略される場合があります)ピアアカウントが[このトラストラインを承認した](authorized-trust-lines.html)場合は`true`。省略されている場合は、`false`と同じです。 | -| `freeze` | ブール値 | (省略される場合があります)このアカウントがこのトラストラインを[凍結](freezes.html)した場合は`true`。省略されている場合は、`false`と同じです。 | -| `freeze_peer` | ブール値 | (省略される場合があります)ピアアカウントがこのトラストラインを[凍結](freezes.html)した場合は、`true`。省略されている場合は、`false`と同じです。 | +| `Field` | 型 | 説明 | +|:------------------|:-----------|:---------------------------------------| +| `account` | 文字列 | このトラストラインの相手側の一意の[アドレス][]。 | +| `balance` | 文字列 | 現在このラインに対して保留されている残高(数値)の表示。残高がプラスの場合はパースペクティブアカウントがその額を保有しており、マイナスの場合はパースペクティブアカウントがその額を借用しています。 | +| `currency` | 文字列 | このトラストラインが保有できる通貨を示す[通貨コード][]。 | +| `limit` | 文字列 | このアカウントがピアアカウントからの借用を希望する特定の通貨の上限額。 | +| `limit_peer` | 文字列 | 相手側アカウントがパースペクティブアカウントからの借用を希望する特定の通貨の上限額。 | +| `quality_in` | 符号なし整数 | このアカウントが、このトラストラインの入金時残高を評価する際のレート(この数値対10億単位の比率)。(たとえば5億の場合は0.5:1の比率を表します。)特殊なケースとして、0は1:1の比率として扱われます。 | +| `quality_out` | 符号なし整数 | このアカウントが、このトラストラインの出金時残高を評価する際のレート(この数値対10億単位の比率)。(たとえば5億の場合は0.5:1の比率を表します。)特殊なケースとして、0は1:1の比率として扱われます。 | +| `no_ripple` | 真偽値 | (省略される場合があります)`true`の場合、このアカウントはこのトラストラインの[No Rippleフラグ](rippling.html)を有効にしています。もし`false`であれば、このアカウントは[No Rippleフラグ](ripplestate.html#所有者の準備金への資金供給)を無効にしていますが、これは[デフォルト値](ripplestate.html#所有者の準備金への資金供給)ではありません。。省略された場合、そのアカウントはこのトラストラインのNo Rippleフラグは無効で、Default Rippleが有効となります。[更新: rippled 1.7.0][] | +| `no_ripple_peer` | 真偽値 | (省略される場合があります)`true`の場合、ピアアカウントはこのトラストラインで[No Rippleフラグ](rippling.html)を有効にしています。もし`false`なら、このアカウントはNo Rippleフラグを無効にしていますが、このアカウントはDefault Rippleフラグも無効にしているため、[デフォルト値](ripplestate.html#所有者の準備金への資金供給)とはみなされません。省略された場合、そのアカウントはこのトラストラインのNo Rippleフラグが無効で、Default Rippleが有効です。[更新: rippled 1.7.0][] | +| `authorized` | 真偽値 | (省略される場合があります)このアカウントが[このトラストラインを承認した](authorized-trust-lines.html)場合は、`true`。省略されている場合は、`false`と同じです。 | +| `peer_authorized` | 真偽値 | (省略される場合があります)ピアアカウントが[このトラストラインを承認した](authorized-trust-lines.html)場合は`true`。省略されている場合は、`false`と同じです。 | +| `freeze` | 真偽値 | (省略される場合があります)このアカウントがこのトラストラインを[凍結](freezes.html)した場合は`true`。省略されている場合は、`false`と同じです。 | +| `freeze_peer` | 真偽値 | (省略される場合があります)ピアアカウントがこのトラストラインを[凍結](freezes.html)した場合は、`true`。省略されている場合は、`false`と同じです。 | ## 考えられるエラー diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_objects.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_objects.md index ffdca1941e..13d84472d7 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_objects.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_objects.md @@ -9,17 +9,20 @@ labels: # account_objects [[ソース]](https://github.com/XRPLF/rippled/blob/399c43cae6e90a428e9ce6a988123972b0f03c99/src/ripple/rpc/handlers/AccountObjects.cpp "Source") -`account_objects`コマンドは、アカウントが所有するすべてのオブジェクトの生[レジャーフォーマット][]を返します。アカウントのトラストラインと残高の概要については、[account_linesメソッド][]を参照してください。 +`account_objects`コマンドは、アカウントが所有するすべてのレジャーエントリの生[レジャーフォーマット][]を返します。アカウントのトラストラインと残高の概要については、[account_linesメソッド][]をご覧ください。 アカウントの`account_objects`応答に含まれる可能性のあるオブジェクトのタイプには以下のものがあります。 -- 現在処理中、資金化されていない、または有効期限切れで削除されていないオーダーの[Offerオブジェクト](offer.html)。(詳細は、[オファーのライフサイクル](offers.html#オファーのライフサイクル)を参照してください。) -- このアカウント側がデフォルト状態にないトラストラインの[RippleStateオブジェクト](ripplestate.html)。 -- アカウントの[SignerList](signerlist.html)(アカウントで[マルチシグ](multi-signing.html)が有効な場合)。 -- 実行されていないかまたは取り消されていない保留中の支払いの[Escrowオブジェクト](escrow.html)。 -- オープンPayment Channelの[PayChannelオブジェクト](paychannel.html)。 -- 保留中のCheckの[Checkオブジェクト](check.html)。 -- Deposit Preauthorizationの[DepositPreauthオブジェクト](depositpreauth-object.html)。[新規: rippled 1.1.0][] +- [Offerエントリ](offer.html): 現在処理中であり、資金化されていない、または有効期限切れで削除されていない注文情報。(詳細は、[オファーのライフサイクル](offers.html#オファーのライフサイクル)をご覧ください。) +- [RippleStateエントリ](ripplestate.html): このアカウント側がデフォルト状態にないトラストライン。 +- アカウントの[SignerList](signerlist.html): アカウントで[マルチシグ](multi-signing.html)が有効な場合。 +- [Escrowエントリ](escrow.html): 実行されていないかまたはキャンセルされていない保留中の支払い。 +- [PayChannelエントリ](paychannel.html): 現在開いているペイメントチャネル。 +- [Checkエントリ](check.html): 保留中のCheck。 +- [DepositPreauthエントリ](depositpreauth-object.html): 入金の事前承認。 +- [Ticketエントリ](tickets.html): Ticket情報。 +- [NFTokenOfferエントリ](nftokenoffer.html): NFTを購入・売却するためのオファー。 +- [NFTokenPageエントリ](nftokenpage.html): NFTの集合。 [新規: rippled 1.11.0][] ## 要求フォーマット @@ -29,36 +32,39 @@ labels: *WebSocket* -``` +```json { "id": 1, "command": "account_objects", "account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "ledger_index": "validated", "type": "state", + "deletion_blockers_only": false, "limit": 10 } ``` *JSON-RPC* -``` +```json { "method": "account_objects", "params": [ { "account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "ledger_index": "validated", - "limit": 10, - "type": "state" + "type": "state", + "deletion_blockers_only": false, + "limit": 10 } ] } ``` + *コマンドライン* -``` +```sh #Syntax: account_objects [] rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated ``` @@ -67,14 +73,17 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated 要求には以下のパラメーターが含まれます。 -| `Field` | 型 | 説明 | -|:---------------|:-------------------------------------------|:---------------| -| `account` | 文字列 | アカウントの一意のIDであり、最も一般的にはアカウントのアドレスが使用されます。 | -| `type` | 文字列 | _(省略可)_ 指定されている場合、結果をフィルタリングしてこのタイプのレジャーオブジェクトのみが含まれるようにします。有効なタイプは`check`、`deposit_preauth`、`escrow`、`offer`、`payment_channel`、`signer_list`、および`state`(トラストライン)です。 | -| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]を参照してください) | -| `ledger_index` | 文字列または符号なし整数 | _(省略可)_ 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]を参照してください) | -| `limit` | 符号なし整数 | _(省略可)_ 結果に含めることができるオブジェクトの最大数。非管理者接続では10以上400以下の範囲で値を指定する必要があります。デフォルトでは200です。 | -| `marker` | [マーカー][] | _(省略可)_ 以前にページネーションされた応答の値。その応答を停止した箇所からデータの取得を再開します。 | +| `Field` | 型 | 必須? | 説明 | +|:-------------------------|:----------------------|:-----|:---------------| +| `account` | 文字列 | はい | アカウントの一意のIDであり、最も一般的にはアカウントのアドレスが使用されます。 | +| `deletion_blockers_only` | Boolean | いいえ | `true`の場合、このアカウントが[削除](deleting-accounts.html)されるのをブロックするオブジェクトのみをレスポンスに含めます。デフォルトは`false`です。 [新規: rippled 1.4.0][] | +| `ledger_hash` | [ハッシュ][] | いいえ | 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]をご覧ください) | +| `ledger_index` | [レジャーインデックス][] | いいえ | 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]ををご覧ください) | +| `limit` | 符号なし整数 | いいえ | 結果に含めることができるオブジェクトの最大数。非管理者接続では10以上400以下の範囲で値を指定する必要があります。デフォルトでは200です。 | +| `marker` | [マーカー][] | いいえ | 以前にページネーションされた応答の値。その応答を停止した箇所からデータの取得を再開します。 | +| `type` | 文字列 | いいえ | 指定されている場合、結果をフィルタリングしてこのタイプのレジャーオブジェクトのみが含まれるようにします。有効なタイプは`check`、`deposit_preauth`、`escrow`、`offer`、`payment_channel`、`signer_list`、`state`(トラストライン)そして`ticket`です。 | + +**注記:** `account_objects`コマンドのコマンドラインインタフェースは`type`フィールドを受け付けません。代わりにコマンドラインでJSON-RPC形式のリクエストを送信するには[jsonメソッド][]を使用してください。 ## 応答フォーマット @@ -84,7 +93,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated *WebSocket* -``` +```json { "id": 8, "status": "success", @@ -344,7 +353,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated *JSON-RPC* -``` +```json 200 OK { "result": { @@ -601,20 +610,612 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated } ``` +*コマンドライン* + +```json +{ + "result" : { + "account" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "account_objects" : [ + { + "Balance" : { + "currency" : "ASP", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 65536, + "HighLimit" : { + "currency" : "ASP", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "ASP", + "issuer" : "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z", + "value" : "10" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "BF7555B0F018E3C5E2A3FF9437A1A5092F32903BE246202F988181B9CED0D862", + "PreviousTxnLgrSeq" : 1438879, + "index" : "2243B0B630EA6F7330B654EFA53E27A7609D9484E535AB11B7F946DF3D247CE9" + }, + { + "Balance" : { + "currency" : "XAU", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 3342336, + "HighLimit" : { + "currency" : "XAU", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "XAU", + "issuer" : "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "79B26D7D34B950AC2C2F91A299A6888FABB376DD76CFF79D56E805BF439F6942", + "PreviousTxnLgrSeq" : 5982530, + "index" : "9ED4406351B7A511A012A9B5E7FE4059FA2F7650621379C0013492C315E25B97" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "5" + }, + "Flags" : 1114112, + "HighLimit" : { + "currency" : "USD", + "issuer" : "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "5" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "2A5C5D95880A254A2C57BB5332558205BC33B9F2B38D359A170283CB4CBD080A", + "PreviousTxnLgrSeq" : 39498567, + "index" : "2DECFAC23B77D5AEA6116C15F5C6D4669EBAEE9E7EE050A40FE2B1E47B6A9419" + }, + { + "Balance" : { + "currency" : "MXN", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "481.992867407479" + }, + "Flags" : 65536, + "HighLimit" : { + "currency" : "MXN", + "issuer" : "rHpXfibHgSb64n8kK9QWDpdbfqSpYbM9a4", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "MXN", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "1000" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "A467BACE5F183CDE1F075F72435FE86BAD8626ED1048EDEFF7562A4CC76FD1C5", + "PreviousTxnLgrSeq" : 3316170, + "index" : "EC8B9B6B364AF6CB6393A423FDD2DDBA96375EC772E6B50A3581E53BFBDFDD9A" + }, + { + "Balance" : { + "currency" : "EUR", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0.793598266778297" + }, + "Flags" : 1114112, + "HighLimit" : { + "currency" : "EUR", + "issuer" : "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "EUR", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "1" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "E9345D44433EA368CFE1E00D84809C8E695C87FED18859248E13662D46A0EC46", + "PreviousTxnLgrSeq" : 5447146, + "index" : "4513749B30F4AF8DA11F077C448128D6486BF12854B760E4E5808714588AA915" + }, + { + "Balance" : { + "currency" : "CNY", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "CNY", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "3" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "CNY", + "issuer" : "rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK", + "value" : "0" + }, + "LowNode" : "0000000000000008", + "PreviousTxnID" : "2FDDC81F4394695B01A47913BEC4281AC9A283CC8F903C14ADEA970F60E57FCF", + "PreviousTxnLgrSeq" : 5949673, + "index" : "578C327DA8944BDE2E10C9BA36AFA2F43E06C8D1E8819FB225D266CBBCFDE5CE" + }, + { + "Balance" : { + "currency" : "DYM", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "1.336889190631542" + }, + "Flags" : 65536, + "HighLimit" : { + "currency" : "DYM", + "issuer" : "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "DYM", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "3" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "6DA2BD02DFB83FA4DAFC2651860B60071156171E9C021D9E0372A61A477FFBB1", + "PreviousTxnLgrSeq" : 8818732, + "index" : "5A2A5FF12E71AEE57564E624117BBA68DEF78CD564EF6259F92A011693E027C7" + }, + { + "Balance" : { + "currency" : "CHF", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-0.3488146605801446" + }, + "Flags" : 131072, + "HighLimit" : { + "currency" : "CHF", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "CHF", + "issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "value" : "0" + }, + "LowNode" : "000000000000008C", + "PreviousTxnID" : "722394372525A13D1EAAB005642F50F05A93CF63F7F472E0F91CDD6D38EB5869", + "PreviousTxnLgrSeq" : 2687590, + "index" : "F2DBAD20072527F6AD02CE7F5A450DBC72BE2ABB91741A8A3ADD30D5AD7A99FB" + }, + { + "Balance" : { + "currency" : "BTC", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 131072, + "HighLimit" : { + "currency" : "BTC", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "3" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "BTC", + "issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "value" : "0" + }, + "LowNode" : "0000000000000043", + "PreviousTxnID" : "03EDF724397D2DEE70E49D512AECD619E9EA536BE6CFD48ED167AE2596055C9A", + "PreviousTxnLgrSeq" : 8317037, + "index" : "767C12AF647CDF5FEB9019B37018748A79C50EDAF87E8D4C7F39F78AA7CA9765" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-11.68225001668339" + }, + "Flags" : 131072, + "HighLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "5000" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "value" : "0" + }, + "LowNode" : "000000000000004A", + "PreviousTxnID" : "8C55AFC2A2AA42B5CE624AEECDB3ACFDD1E5379D4E5BF74A8460C5E97EF8706B", + "PreviousTxnLgrSeq" : 43251698, + "index" : "826CF5BFD28F3934B518D0BDF3231259CBD3FD0946E3C3CA0C97D2C75D2D1A09" + }, + { + "Balance" : { + "currency" : "BTC", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0.00111" + }, + "Flags" : 65536, + "HighLimit" : { + "currency" : "BTC", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "BTC", + "issuer" : "rpgKWEmNqSDAGFhy5WDnsyPqfQxbWxKeVd", + "value" : "10" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "74F2F2A731C1350492FA03F8C67AF6C05EEC391160AACC04BF99329D9EAB0052", + "PreviousTxnLgrSeq" : 585437, + "index" : "94A9F05FEF9A153229E2E997E64919FD75AAE2028C8153E8EBDB4440BD3ECBB5" + }, + { + "Balance" : { + "currency" : "BTC", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-0.0008744482690504699" + }, + "Flags" : 131072, + "HighLimit" : { + "currency" : "BTC", + "issuer" : "rBJ3YjwXi2MGbg7GVLuTXUWQ8DjL7tDXh4", + "value" : "10" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "BTC", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "95221CD154317176B5748202A2E820D7A336597816E9787C27E3E4F25576877F", + "PreviousTxnLgrSeq" : 8208104, + "index" : "BC2AC65D7F9AD5CDAD131DEFE248727CA8A0FC219A33A3264E6202F50B4733C0" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 65536, + "HighLimit" : { + "currency" : "USD", + "issuer" : "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun", + "value" : "0" + }, + "HighNode" : "0000000000000002", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "1" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "8C55AFC2A2AA42B5CE624AEECDB3ACFDD1E5379D4E5BF74A8460C5E97EF8706B", + "PreviousTxnLgrSeq" : 43251698, + "index" : "C493ABA2619D0FC6355BA862BC8312DF8266FBE76AFBA9636E857F7EAC874A99" + }, + { + "Balance" : { + "currency" : "CNY", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-9.07619790068559" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "CNY", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "100" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "CNY", + "issuer" : "razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA", + "value" : "0" + }, + "LowNode" : "0000000000000005", + "PreviousTxnID" : "8EFE067DA1B2D57C485EFFCF875604548BA990EA00D019B466313D4CEE1E4668", + "PreviousTxnLgrSeq" : 8284705, + "index" : "C8554E6CE903505F631703E73D22D2D4D0662FDA9F524290997DF6B4D760C495" + }, + { + "Balance" : { + "currency" : "JPY", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-7.292695098901099" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "JPY", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "JPY", + "issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "value" : "0" + }, + "LowNode" : "0000000000000076", + "PreviousTxnID" : "CE460D85F9AD93752E8EC8BCF4DFFE91DDF08B8C988836D64CB51EB7B447F672", + "PreviousTxnLgrSeq" : 5100078, + "index" : "CB1565898F19916A5EE49CC537B1D43CA075B9B96E82C6892E16EF6DFDEE7865" + }, + { + "Balance" : { + "currency" : "AUX", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 3342336, + "HighLimit" : { + "currency" : "AUX", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "AUX", + "issuer" : "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "A6964735A14272742E7E10EB5AB5A7CE693473BBB4DAFA488971A15E181132CF", + "PreviousTxnLgrSeq" : 5982528, + "index" : "C61E113C767A9E7B27CD944162FB63EAA24C38C8664E984759821C3ADFFE097E" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0.0004557360418801623" + }, + "Flags" : 1114112, + "HighLimit" : { + "currency" : "USD", + "issuer" : "r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X", + "value" : "0" + }, + "HighNode" : "0000000000000003", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "1" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "F8F178712C0C3DA013A774A598B2A004BE6BA3D4542B8448D221A60D8A0D409A", + "PreviousTxnLgrSeq" : 38837233, + "index" : "D43180D7B2EEBB285C9D296590C4D5E5580C814F3026FC4D41FFDF3049FB547F" + }, + { + "Balance" : { + "currency" : "EUR", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-12.41688780720394" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "EUR", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "100" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "EUR", + "issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", + "value" : "0" + }, + "LowNode" : "000000000000008F", + "PreviousTxnID" : "1F0436C0688A8156EE2D7745B02C3F39C477A43F6BAD5D46C25A08949EF41739", + "PreviousTxnLgrSeq" : 5449071, + "index" : "F6B22B4D6A83B13A7F16E6A4A6EA8D3E26739C9D86C23DAC21C18E74B5E2C8CC" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-35" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "500" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "rfF3PNkwkq1DygW2wum2HK3RGfgkJjdPVD", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "99CB3C30FAEC301621951B944059C3C2EB78FDE7ED2E124A79901B6F2600E868", + "PreviousTxnLgrSeq" : 4339260, + "index" : "D23CF25053AC6A5106E9162A20AF52818EDC672CA77AD1625C0407A71D37102F" + }, + { + "Balance" : { + "currency" : "JOE", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "-5" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "JOE", + "issuer" : "rwUVoVMSURqNyvocPCcvLu3ygJzZyw8qwp", + "value" : "50" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "JOE", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "F5B48F7631779C6562AF07DC79E0E4E25A0696C38823417BF811DF27C5D88168", + "PreviousTxnLgrSeq" : 5736288, + "index" : "FEECE8973F75156412E1604C52B8B9C6BC9EF21FA4A0FAA8B779AC416D039B34" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "USD", + "issuer" : "rE6R3DWF9fBD7CyiQciePF9SqK58Ubp8o2", + "value" : "100" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "B1A7405C4A698E6A371E5B02836E779A942936AB754865FE82141E5280F09D1B", + "PreviousTxnLgrSeq" : 5718137, + "index" : "8DF1456AAB7470A760F6A095C156B457FF1038D43E6B11FD8011C2DF714E4FA1" + }, + { + "Balance" : { + "currency" : "JOE", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "JOE", + "issuer" : "rE6R3DWF9fBD7CyiQciePF9SqK58Ubp8o2", + "value" : "100" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "JOE", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "8E488B0E939D4DACD62102A5BFA2FDC63679EFCC56F2FDA2FDF45283674BB711", + "PreviousTxnLgrSeq" : 5989200, + "index" : "273BD42DD72E7D84416ED759CEC92DACCD12A4502287E50BECF816233C021ED1" + }, + { + "Balance" : { + "currency" : "015841551A748AD2C1F76FF6ECB0CCCD00000000", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 2228224, + "HighLimit" : { + "currency" : "015841551A748AD2C1F76FF6ECB0CCCD00000000", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "10.01037626125837" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "015841551A748AD2C1F76FF6ECB0CCCD00000000", + "issuer" : "rs9M85karFkCRjvc6KMWn8Coigm9cbcgcx", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "2B3E313FBDE15988425AACA1EA2EAEBBBCB8020E4FBAA7159BA678E1C4F6B4C3", + "PreviousTxnLgrSeq" : 5982458, + "index" : "BA92A0B9EB8A75E84C5463BA1A055F2B1C1B7CC20BFDA7B027C685F75E06629D" + }, + { + "Balance" : { + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "0" + }, + "Flags" : 131072, + "HighLimit" : { + "currency" : "USD", + "issuer" : "rEhDDUUNxpXgEHVJtC2cjXAgyx5VCFxdMF", + "value" : "1" + }, + "HighNode" : "0000000000000000", + "LedgerEntryType" : "RippleState", + "LowLimit" : { + "currency" : "USD", + "issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", + "value" : "0" + }, + "LowNode" : "0000000000000000", + "PreviousTxnID" : "B6B410172C0B65575D89E464AF5B99937CC568822929ABF87DA75CBD11911932", + "PreviousTxnLgrSeq" : 6592159, + "index" : "2CC2B211F6D1159B5CFD07AF8717A9C51C985E2497B2875C192EE87266AB0F81" + } + ], + "ledger_hash" : "06BF4DBE7D57FBFEAFD70D4CA7B00ED6EF404B94C446767063A0EF58A937FC4E", + "ledger_index" : 56843766, + "status" : "success", + "validated" : true + } +} +``` + この応答は[標準フォーマット][]に従っており、正常に完了した場合は結果に次のフィールドが含まれます。 -| `Field` | 型 | 説明 | -|:-----------------------|:--------------------------|:------------------------| -| `account` | 文字列 | この要求に対応するアカウントの一意の[アドレス][]。 | -| `account_objects` | 配列 | このアカウントが所有するオブジェクトの配列。各オブジェクトは、生[レジャーフォーマット][]です。 | -| `ledger_hash` | 文字列 | (省略される場合があります)この応答の生成に使用されたレジャーの識別用ハッシュ。 | -| `ledger_index` | 数値 - [レジャーインデックス][] | _(省略される場合があります)_ この応答の生成に使用されたレジャーバージョンのレジャーインデックス。 | +| `Field` | 型 | 説明 | +|:-----------------------|:----------------------------|:------------------------| +| `account` | 文字列 | この要求に対応するアカウントの一意の[アドレス][]。 | +| `account_objects` | 配列 | このアカウントが所有するオブジェクトの配列。各オブジェクトは、生[レジャーフォーマット][]です。 | +| `ledger_hash` | 文字列 | (省略される場合があります)この応答の生成に使用されたレジャーの識別用ハッシュ。 | +| `ledger_index` | 数値 - [レジャーインデックス][] | _(省略される場合があります)_ この応答の生成に使用されたレジャーバージョンのレジャーインデックス。 | | `ledger_current_index` | 数値 - [レジャーインデックス][] | _(省略される場合があります)_ この応答の生成に使用された現在処理中のレジャーバージョンのレジャーインデックス。 | -| `limit` | 数値 | _(省略される場合があります)_ この要求で使用されていた制限(制限の使用がある場合)。 | -| `marker` | [マーカー][] | 応答がページネーションされていることを示す、サーバーが定義した値。この値を次のコールに渡して、このコールで終わった箇所から再開します。この後に追加のページがない場合は省略されます。 | -| `validated` | ブール値 | このフィールドが含まれていて`true`に設定されている場合、この応答内の情報は検証済みのレジャーバージョンから取得されています。そうでない場合、情報は変更されることがあります。 | +| `limit` | 数値 | _(省略される場合があります)_ この要求で使用されていた制限(制限の使用がある場合)。 | +| `marker` | [マーカー][] | 応答がページネーションされていることを示す、サーバーが定義した値。この値を次のコールに渡して、このコールで終わった箇所から再開します。この後に追加のページがない場合は省略されます。 | +| `validated` | 真偽値 | このフィールドが含まれていて`true`に設定されている場合、この応答内の情報は検証済みのレジャーバージョンから取得されています。そうでない場合、情報は変更されることがあります。 | ## 考えられるエラー diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md index f9a315d07f..116e49e741 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md @@ -52,16 +52,15 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current 要求には以下のパラメーターを指定できます。 -| `Field` | 型 | 説明 | -|:---------------|:----------------------------|:------------------------------| -| `account` | 文字列 | アカウントの一意のIDであり、通常はアカウントの[アドレス][]です。 | -| `ledger` | 符号なし整数または文字列 | _(**廃止予定**、省略可)_ 使用するレジャーバージョンの一意のID(レジャーインデックス、ハッシュ、「validated」などのショートカットなど)。 | -| `ledger_hash` | 文字列 - [ハッシュ][] | _(省略可)_ 使用するレジャーバージョンを識別する20バイトの16進文字列。 | -| `ledger_index` | 数値 - [レジャーインデックス][] | (省略可、デフォルトでは`current`)使用するレジャーの[レジャーインデックス][]、またはレジャーを動的に選択するための「current」、「closed」、「validated」のいずれか。([レジャーの指定][]を参照してください) | -| `limit` | 整数 | (省略可、デフォルト値は可変)取得するトランザクションの数を制限します。サーバーはこの値を受け入れる必要はありません。10以上400以下の範囲で値を指定する必要があります。[新規: rippled 0.26.4][] | -| `marker` | [マーカー][] | _(省略可)_ 以前にページネーションされた応答の値。その応答を停止した箇所からデータの取得を再開します。[新規: rippled 0.26.4][] | +| `Field` | 型 | 必須? | 説明 | +|:---------------|:----------------------|:-----|:------------------------------| +| `account` | 文字列 - [Address][] | はい | このアカウントからのオファーを検索します。 | +| `ledger_hash` | [ハッシュ][] | いいえ | 使用するレジャーバージョンを識別する20バイトの16進文字列。 | +| `ledger_index` | [レジャーインデックス][] | いいえ | 使用するレジャーの[レジャーインデックス][]、レジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]をご覧ください | +| `limit` | 整数 | いいえ | 取得するオファーの数を制限します。サーバはこの数より少ない結果を返すことがあります。10~400の範囲内でなければなりません。この範囲外の正の値は、最も近い有効なオプションに置き換えられます。デフォルトは200です。 | +| `marker` | [マーカー][] | いいえ | 以前にページネーションされた応答の値。その応答を停止した箇所からデータの取得を再開します。 | -以下のパラメーターは廃止予定であり、今後予告なしに削除される可能性があります。`ledger`。 +以下のパラメーターは廃止予定であり、今後予告なしに削除される可能性があります。`ledger`,`strict` ## 応答フォーマット @@ -113,6 +112,7 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current ```json 200 OK + { "result": { "account": "rpP2JgiMyTF5jR5hLG3xHCPi1knBb1v9cM", @@ -158,30 +158,56 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current } ``` +*コマンドライン* + +```json +{ + "result" : { + "account" : "rpP2JgiMyTF5jR5hLG3xHCPi1knBb1v9cM", + "ledger_current_index" : 57110969, + "offers" : [ + { + "flags" : 0, + "quality" : "1499850014.892974", + "seq" : 7916201, + "taker_gets" : { + "currency" : "BCH", + "issuer" : "rcyS4CeCZVYvTiKcxj6Sx32ibKwcDHLds", + "value" : "0.5268598580881351" + }, + "taker_pays" : "790210766" + } + ], + "status" : "success", + "validated" : false + } +} +``` + この応答は[標準フォーマット][]に従っており、正常に完了した場合は結果に次のフィールドが含まれます。 -| `Field` | 型 | 説明 | -|:-----------------------|:--------------------------|:------------------------| -| `account` | 文字列 | オファーを出したアカウントを識別する一意の[アドレス][] | -| `offers` | 配列 | オブジェクトの配列。各オブジェクトは、このアカウントが出したオファーの中で、レジャーバージョンが要求された時点で未処理のオファーを表します。オファーの数が多い場合は、一度に`limit`の数までのオファーが返されます。 | -| `ledger_current_index` | 数値 - [レジャーインデックス][] | _(`ledger_hash`または`ledger_index`が指定されている場合は省略可)_ このデータの取得時に使用した、現在処理中のレジャーバージョンのレジャーインデックス。[新規: rippled 0.26.4-sp1][] | -| `ledger_index` | 数値 - [レジャーインデックス][] | _(`ledger_current_index`が代わりに指定されている場合は省略可)_ 要求に従って、このデータの取得時に使用されたレジャーバージョンのレジャーインデックス。[新規: rippled 0.26.4-sp1][] | -| `ledger_hash` | 文字列 - [ハッシュ][] | _(省略される場合があります)_ このデータの取得時に使用されたレジャーバージョンの識別用ハッシュ。[新規: rippled 0.26.4-sp1][] | -| `marker` | [マーカー][] | _(省略される場合があります)_ 応答がページネーションされていることを示す、サーバーが定義した値。この値を次のコールに渡して、このコールで終わった箇所から再開します。この後に情報ページがない場合は省略されます。[新規: rippled 0.26.4][] | +| `Field` | 型 | 説明 | +|:-----------------------|:----------------------------|:------------------------| +| `account` | 文字列 | オファーを出したアカウントを識別する一意の[アドレス][] | +| `offers` | 配列 | オブジェクトの配列。各オブジェクトは、このアカウントが出したオファーの中で、レジャーバージョンが要求された時点で未処理のオファーを表します。オファーの数が多い場合は、一度に`limit`の数までのオファーが返されます。 | +| `ledger_current_index` | 数値 - [レジャーインデックス][] | _(`ledger_hash`または`ledger_index`が指定されている場合は省略可)_ このデータの取得時に使用した、現在処理中のレジャーバージョンのレジャーインデックス。 | +| `ledger_index` | 数値 - [レジャーインデックス][] | _(`ledger_current_index`が指定されている場合は省略可)_ 要求に従って、このデータの取得時に使用されたレジャーバージョンのレジャーインデックス。 | +| `ledger_hash` | 文字列 - [ハッシュ][] | _(省略される場合があります)_ このデータの取得時に使用されたレジャーバージョンの識別用ハッシュ。 | +| `marker` | [マーカー][] | _(省略される場合があります)_ 応答がページネーションされていることを示す、サーバが定義した値。この値を次のコールに渡して、このコールで終わった箇所から再開します。この後に情報ページがない場合は省略されます。 | 各Offerオブジェクトのフィールドを次に示します。 -| `Field` | 型 | 説明 | -|:-------------|:-----------------|:-------------------------------------------| -| `flags` | 符号なし整数 | このオファーエントリに対してビットフラグとして設定されているオプション。 | -| `seq` | 符号なし整数 | このエントリを作成したトランザクションのシーケンス番号。(トランザクションの[シーケンス番号](basic-data-types.html#アカウントシーケンス)はアカウントに関連付けられています。) | -| `taker_gets` | 文字列またはオブジェクト | オファーを受け入れるアカウントが受領する額。XRPまたは通貨指定オブジェクトの額を表す文字列として示されます。([通貨額の指定][通貨額]を参照してください。) | -| `taker_pays` | 文字列またはオブジェクト | オファーを受け入れるアカウントが提供する額。XRPまたは通貨指定オブジェクトの額を表す文字列として示されます。([通貨額の指定][通貨額]を参照してください。) | -| `quality` | 文字列 | オファーの為替レート。元の`taker_pays`を元の`taker_gets`で割った比率です。オファーの実行時には、最も好ましい(最も低い)クオリティのオファーが最初に消費されます。同じクオリティのオファーは古いものから新しいものの順で実行されます。[新規: rippled 0.29.0][] | -| `expiration` | 符号なし整数 | (省略される場合があります)この時刻の経過後は、資金化されなかったオファーとみなされます([Rippleエポック以降の経過秒数][])。関連項目: [オファーの有効期限](offers.html#オファーの有効期限)。[新規: rippled 0.30.1][] | +| `Field` | 型 | 説明 | +|:-------------|:---------------------|:-------------------------------------------| +| `flags` | 符号なし整数 | このオファーエントリに対してビットフラグとして設定されているオプション。 | +| `seq` | 符号なし整数 | このエントリを作成したトランザクションのシーケンス番号。(トランザクションの[シーケンス番号](basic-data-types.html#アカウントシーケンス)はアカウントに関連付けられています。) | +| `taker_gets` | 文字列またはオブジェクト | オファーを受け入れるアカウントが受領する額。XRPまたは通貨指定オブジェクトの額を表す文字列として示されます。([通貨額の指定][通貨額]をご覧ください。) | +| `taker_pays` | 文字列またはオブジェクト | オファーを受け入れるアカウントが提供する額。XRPまたは通貨指定オブジェクトの額を表す文字列として示されます。([通貨額の指定][通貨額]をご覧ください。) | +| `quality` | 文字列 | オファーの為替レート。元の`taker_pays`を元の`taker_gets`で割った比率です。オファーの実行時には、最も好ましい(最も低い)クオリティのオファーが最初に消費されます。同じクオリティのオファーは古いものから新しいものの順で実行されます。[新規: rippled 0.29.0][] | +| `expiration` | 符号なし整数 | (省略される場合があります)この時刻の経過後は、資金化されなかったオファーとみなされます([Rippleエポック以降の経過秒数][])。関連項目: [オファーの有効期限](offers.html#オファーの有効期限)。[新規: rippled 0.30.1][] | ## 考えられるエラー diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md new file mode 100644 index 0000000000..6ab2eec51b --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md @@ -0,0 +1,133 @@ +--- +html: ledger-clio.html # Watch carefully for clashes w/ this filename +parent: clio-methods.html +blurb: レジャーのバージョン情報を取得します。 +labels: + - ブロックチェーン +--- +# ledger +[[ソース]](https://github.com/XRPLF/clio/blob/master/src/rpc/handlers/Ledger.cpp "ソース") + +`ledger`コマンドは公開されている[レジャー](ledgers.html)の情報を取得します。[新規: Clio v1.0.0](https://github.com/XRPLF/clio/releases/tag/1.0.0 "BADGE_BLUE") + +Clioサーバはデフォルトで検証済みのレジャーデータを返すことに注意してください。 + +## リクエストのフォーマット +リクエストフォーマットの例: + + + +*WebSocket* + +```json +{% include '_api-examples/ledger-clio/wsrpc-request.json' %} +``` + +*JSON-RPC* + +```json +{% include '_api-examples/ledger-clio/jsonrpc-request.json' %} +``` + + + + + +リクエストには以下のパラメータを含めることができます。 + +| `Field` | 型 | 説明 | +|:---------------|:----------------------|:-------------------------------| +| `ledger_hash` | [ハッシュ][] | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]ご覧ください。) | +| `ledger_index` | [レジャーインデックス][] | _(省略可)_ 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]をご覧ください) | +| `transactions` | 真偽値 | _(省略可)_ `true`の場合、指定されたレジャーバージョンのトランザクションに関する情報が返されます。デフォルトでは`false`です。レジャーバージョンを指定しない場合は無視されます。 | +| `expand` | 真偽値 | _(省略可)_ ハッシュのみではなく、トランザクション/アカウントの完全な情報がJSONフォーマットで提供されます。デフォルトでは`false`です。トランザクション、アカウント、またはその両方をリクエストしない場合は無視されます。 | +| `owner_funds` | 真偽値 | _(省略可)_ `true`の場合、応答のOfferCreateトランザクションのメタデータに`owner_funds`フィールドが含まれます。デフォルトでは`false`です。トランザクションが含まれておらず、`expand`がtrueではない場合には無視されます。 | +| `binary` | 真偽値 | _(省略可)_ `true`で、かつ`transactions`と`expand`が両方とも`true`の場合、JSONフォーマットではなくバイナリフォーマット(16進文字列)でトランザクション情報が返されます。 | +| `diff` | 真偽値 | _(省略可)_ `true`の場合、指定したレジャーのトランザクションの一部として追加、変更、または削除されたすべてのオブジェクトを返します。 | + +`ledger`フィールドは廃止予定であり、今後予告なしに削除される可能性があります。 + +> **注記:** Clioの`ledger`コマンドは、[rippledのledgerコマンド](ledger.html)でサポートされている以下のフィールドをサポートしていません。 +> +> * `accounts` +> * `full` +> * `queue` +> +> 上記のフィールドのいずれかが`true`に設定されている場合、Clioは**常に**リクエストを`rippled`に転送します。 + +## レスポンスのフォーマット + +処理が成功したレスポンスの例: + + + +*WebSocket* + +```json +{% include '_api-examples/ledger-clio/wsrpc-response.json' %} +``` + +*JSON-RPC* + +```json +200 OK + +{% include '_api-examples/ledger-clio/jsonrpc-response.json' %} +``` + + + +レスポンスは[標準フォーマット][]に従っており、正常に完了した場合は結果にレジャーに関する情報を表す次のフィールドが含まれています。 + +| `Field` | 型 | 説明 | +|:-------------------------------|:-----------|:----------------------------------| +| `ledger` | オブジェクト | このレジャーの完全なヘッダーデータ。 | +| `ledger.account_hash` | 文字列 | このレジャーのすべてのアカウントの状態情報のハッシュ値。 | +| `ledger.accountState` | 配列 | (リクエストで指定がない場合省略) このレジャーのすべての[アカウント状態情報](ledger-data-formats.html)(16進数) | +| `ledger.close_flags` | 数値 | このレジャーの[クローズに関するフラグ](ledger-header.html#close-flags)のビットマップ。 | +| `ledger.close_time` | 数値 | レジャーが閉鎖された時刻([Rippleエポック以降の経過秒数][])。 | +| `ledger.close_time_human` | 文字列 | 人間が読めるフォーマットでのこのレジャーが閉鎖された時刻。常にUTCタイムゾーンを使用します。 | +| `ledger.close_time_resolution` | 数値 | レジャー閉鎖時刻が丸められる秒数の範囲。 | +| `ledger.closed` | 真偽値 | このレジャーが閉鎖されているかどうか。 | +| `ledger.ledger_hash` | 文字列 | レジャー全体の一意の識別用ハッシュ。 | +| `ledger.ledger_index` | 文字列 | このレジャーの[レジャーインデックス][]。整数を引用符で囲んだ形式で示されます。 | +| `ledger.parent_close_time` | 数値 | 前のレジャーが閉鎖された時刻。 | +| `ledger.parent_hash` | 文字列 | このレジャーの直前のレジャーの一意の識別用ハッシュ。 | +| `ledger.total_coins` | 文字列 | ネットワークのXRPの合計(drop数)。整数を引用符で囲んだ形式で示されます。(トランザクションコストによりXRPが焼却されると、この値は減少します。) | +| `ledger.transaction_hash` | 文字列 | このレジャーに記録されているトランザクション情報のハッシュ(16進数) | +| `ledger.transactions` | 配列 | (リクエストで指定がない場合省略) このレジャーバージョンで適用されたトランザクション。デフォルトでは、メンバーはトランザクションの識別用[ハッシュ][]文字列です。リクエストで`expand`がtrueとして指定されている場合は、メンバーはJSONフォーマットまたはバイナリフォーマットでのトランザクションの完全な表現です。フォーマットは、リクエストで`binary`がtrueとして指定されていたかどうかに応じて決まります。 | +| `ledger_hash` | 文字列 | レジャー全体の一意の識別用ハッシュ。 | +| `ledger_index` | 数値 | このレジャーの[レジャーインデックス][]。 | +| `validated` | 真偽値 | _(省略される場合があります)_ `true`の場合、このレジャーは最終バージョンです。省略または `false` の場合、このレジャーのデータは最終版ではありません。 | +| `diff` | オブジェクト | _(リクエストで`diff`パラメータの指定がない場合省略)_ レジャーのトランザクションの一部として追加、変更、または削除されたハッシュの配列を含むオブジェクト。 | + +リクエストに`"owner_funds": true`が指定されておりトランザクションが展開されている場合、応答には、各[OfferCreateトランザクション][]の`metaData`オブジェクトの`owner_funds`フィールドが含まれています。このフィールドの目的は、新しい検証済みレジャーごとに[オファーの資金化ステータス](offers.html#オファーのライフサイクル)を容易に追跡できるようにすることです。このフィールドの定義は、[オーダーブックサブスクリプションストリーム](subscribe.html#オーダーブックストリーム)でのこのフィールドのバージョンとはわずかに異なります。 + +| `Field` | 値 | 説明 | +|:--------------|:------|:----------------------------------------------------| +| `owner_funds` | 文字列 | このレジャーのすべてのトランザクションの実行後に、このOfferCreateトランザクションを送信する`Account`が保有する`TakerGets`通貨の額。この通貨額が[凍結](freezes.html)されているかどうかはチェックされません。 | + +リクエストで`”diff": true`を指定した場合、レスポンスにはオブジェクト`diff`が含まれます。このオブジェクトのフィールドは以下の通りです。 + +| `Field` | 値 | 説明 | +|:--------------|:---------------------------|:----------------------------------------------------| +| `object_id` | 文字列 | オブジェクトのID | +| `Hashes` | オブジェクトまたは16進文字列 | リクエストが`binary`をtrueに設定したかfalseに設定したかに応じて、このフィールドは作成されたオブジェクトの内容、変更されたオブジェクトの新しい値、またはオブジェクトが削除された場合は空の文字列を返します。 | + +### `diff`に`true`を設定した場合のレスポンス + + +````json +{% include '_api-examples/ledger-clio/jsonrpc-diff-response.json' %} +```` + +## 考えられるエラー + +* [汎用エラータイプ][]のすべて。 +* `invalidParams` - 1つ以上のフィールドの指定が正しくないか、1つ以上の必須フィールドが指定されていません。 +* `lgrNotFound` - `ledger_hash`または`ledger_index`で指定したレジャーが存在しないか、存在してはいるもののサーバが保有していません。 + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/server_info-clio.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/server_info-clio.md new file mode 100644 index 0000000000..dbc60d9888 --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/server_info-clio.md @@ -0,0 +1,632 @@ +--- +html: server_info-clio.html +parent: clio-methods.html +blurb: Clioサーバの状態を人間が読める形式で取得します。 +labels: + - コアサーバ +--- +# server_info +[[ソース]](https://github.com/XRPLF/clio/blob/master/src/rpc/handlers/ServerInfo.cpp "ソース") + +`server_info`コマンドは[Clioサーバ](the-clio-server.html)にクエリされるClioサーバに関する様々な情報を人間が読める形で問い合わせます。`rippled`サーバについては、代わりに[`server_info` (`rippled`)](server_info.html)をご覧ください。[新規: Clio v1.0.0](https://github.com/XRPLF/clio/releases/tag/1.0.0 "BADGE_BLUE") + + +## リクエストのフォーマット +リクエストのフォーマットの例: + + + +*WebSocket* + +```json +{ + "id": 1, + "command": "server_info" +} +``` + +*JSON-RPC* + +```json +{ + "method": "server_info", + "params": [ + {} + ] +} +``` + + + + + +リクエストにパラメーターは含みません。 + +## レスポンスのフォーマット + +クライアントが`localhost`経由でClioサーバに接続すると、レスポンスには`counters`オブジェクトと`etl`オブジェクトが含まれます。クライアントが同じサーバに存在せず、`localhost`経由で接続しない場合、これらのオブジェクトはレスポンスから省略されます。 + +クライアントが`localhost`経由で接続した場合の成功したレスポンスの例: + + + +*WebSocket* + +```json +{ + "id": 1, + "result": { + "info": { + "complete_ledgers": "19499132-19977628", + "counters": { + "rpc": { + "account_objects": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "991" + }, + "account_tx": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "91633" + }, + "account_lines": { + "started": "5", + "finished": "5", + "errored": "0", + "forwarded": "0", + "duration_us": "4915159" + }, + "submit_multisigned": { + "started": "2", + "finished": "2", + "errored": "0", + "forwarded": "2", + "duration_us": "4823" + }, + "ledger_entry": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "17806" + }, + "server_info": { + "started": "5", + "finished": "5", + "errored": "0", + "forwarded": "0", + "duration_us": "2375580" + }, + "account_info": { + "started": "5", + "finished": "5", + "errored": "0", + "forwarded": "5", + "duration_us": "9256" + }, + "account_currencies": { + "started": "4", + "finished": "4", + "errored": "0", + "forwarded": "0", + "duration_us": "517302" + }, + "noripple_check": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "2218" + }, + "tx": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "562" + }, + "gateway_balances": { + "started": "6", + "finished": "6", + "errored": "0", + "forwarded": "0", + "duration_us": "1395156" + }, + "channel_authorize": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "2017" + }, + "manifest": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "1707" + }, + "subscribe": { + "started": "6", + "finished": "6", + "errored": "0", + "forwarded": "0", + "duration_us": "116" + }, + "random": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "111" + }, + "ledger_data": { + "started": "14", + "finished": "3", + "errored": "11", + "forwarded": "0", + "duration_us": "6179145" + }, + "ripple_path_find": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "1409563" + }, + "account_channels": { + "started": "14", + "finished": "14", + "errored": "0", + "forwarded": "0", + "duration_us": "1062692" + }, + "submit": { + "started": "6", + "finished": "6", + "errored": "0", + "forwarded": "6", + "duration_us": "11383" + }, + "transaction_entry": { + "started": "8", + "finished": "5", + "errored": "3", + "forwarded": "0", + "duration_us": "494131" + } + }, + "subscriptions": { + "ledger": 0, + "transactions": 0, + "transactions_proposed": 0, + "manifests": 2, + "validations": 2, + "account": 0, + "accounts_proposed": 0, + "books": 0 + } + }, + "load_factor": 1, + "clio_version": "0.3.0-b2", + "validation_quorum": 8, + "rippled_version": "1.9.1-rc1", + "validated_ledger": { + "age": 4, + "hash": "4CD25FB70D45646EE5822E76E58B66D39D5AE6BA0F70491FA803DA0DA218F434", + "seq": 19977628, + "base_fee_xrp": 1E-5, + "reserve_base_xrp": 1E1, + "reserve_inc_xrp": 2E0 + } + }, + "cache": { + "size": 8812733, + "is_full": true, + "latest_ledger_seq": 19977629 + }, + "etl": { + "etl_sources": [ + { + "validated_range": "19405538-19977629", + "is_connected": "1", + "ip": "52.36.182.38", + "ws_port": "6005", + "grpc_port": "50051", + "last_msg_age_seconds": "0" + } + ], + "is_writer": true, + "read_only": false, + "last_publish_age_seconds": "2" + }, + "validated": true + }, + "status": "success", + "type": "response", + "warnings": [ + { + "id": 2001, + "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include ledger_index:current in your request" + }, + { + "id": 2002, + "message": "This server may be out of date" + } + ] +} +``` + +*JSON-RPC* + +```json +200 OK + +{ + "result": { + "info": { + "complete_ledgers": "19499132-19977628", + "counters": { + "rpc": { + "account_objects": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "991" + }, + "account_tx": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "91633" + }, + "account_lines": { + "started": "5", + "finished": "5", + "errored": "0", + "forwarded": "0", + "duration_us": "4915159" + }, + "submit_multisigned": { + "started": "2", + "finished": "2", + "errored": "0", + "forwarded": "2", + "duration_us": "4823" + }, + "ledger_entry": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "17806" + }, + "server_info": { + "started": "5", + "finished": "5", + "errored": "0", + "forwarded": "0", + "duration_us": "2375580" + }, + "account_info": { + "started": "5", + "finished": "5", + "errored": "0", + "forwarded": "5", + "duration_us": "9256" + }, + "account_currencies": { + "started": "4", + "finished": "4", + "errored": "0", + "forwarded": "0", + "duration_us": "517302" + }, + "noripple_check": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "2218" + }, + "tx": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "562" + }, + "gateway_balances": { + "started": "6", + "finished": "6", + "errored": "0", + "forwarded": "0", + "duration_us": "1395156" + }, + "channel_authorize": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "2017" + }, + "manifest": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "1707" + }, + "subscribe": { + "started": "6", + "finished": "6", + "errored": "0", + "forwarded": "0", + "duration_us": "116" + }, + "random": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "0", + "duration_us": "111" + }, + "ledger_data": { + "started": "14", + "finished": "3", + "errored": "11", + "forwarded": "0", + "duration_us": "6179145" + }, + "ripple_path_find": { + "started": "1", + "finished": "1", + "errored": "0", + "forwarded": "1", + "duration_us": "1409563" + }, + "account_channels": { + "started": "14", + "finished": "14", + "errored": "0", + "forwarded": "0", + "duration_us": "1062692" + }, + "submit": { + "started": "6", + "finished": "6", + "errored": "0", + "forwarded": "6", + "duration_us": "11383" + }, + "transaction_entry": { + "started": "8", + "finished": "5", + "errored": "3", + "forwarded": "0", + "duration_us": "494131" + } + }, + "subscriptions": { + "ledger": 0, + "transactions": 0, + "transactions_proposed": 0, + "manifests": 2, + "validations": 2, + "account": 0, + "accounts_proposed": 0, + "books": 0 + } + }, + "load_factor": 1, + "clio_version": "0.3.0-b2", + "validation_quorum": 8, + "rippled_version": "1.9.1-rc1", + "validated_ledger": { + "age": 4, + "hash": "4CD25FB70D45646EE5822E76E58B66D39D5AE6BA0F70491FA803DA0DA218F434", + "seq": 19977628, + "base_fee_xrp": 1E-5, + "reserve_base_xrp": 1E1, + "reserve_inc_xrp": 2E0 + } + }, + "cache": { + "size": 8812733, + "is_full": true, + "latest_ledger_seq": 19977629 + }, + "etl": { + "etl_sources": [ + { + "validated_range": "19405538-19977629", + "is_connected": "1", + "ip": "52.36.182.38", + "ws_port": "6005", + "grpc_port": "50051", + "last_msg_age_seconds": "0" + } + ], + "is_writer": true, + "read_only": false, + "last_publish_age_seconds": "2" + }, + "validated": true, + }, + "status": "success", + "type": "response", + "warnings": [ + { + "id": 2001, + "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include ledger_index:current in your request" + }, + { + "id": 2002, + "message": "This server may be out of date" + } + ] +} +``` + + + +クライアントが`localhost`経由で接続しなかった場合の成功レスポンスの例: + + + +*WebSocket* + +```json +{ + "id": 1, + "result": { + "info": { + "complete_ledgers":"32570-73737719", + "load_factor":1, + "clio_version":"1.0.2", + "validation_quorum":28, + "rippled_version":"1.9.1", + "validated_ledger": { + "age":7, + "hash":"4ECDEAF9E6F8B37EFDE297953168AAB42DEED1082A565639EBB2D29E047341B4", + "seq":73737719, + "base_fee_xrp":1E-5, + "reserve_base_xrp":1E1, + "reserve_inc_xrp":2E0 + }, + "cache": { + "size":15258947, + "is_full":true, + "latest_ledger_seq":73737719 + } + }, + "validated":true, + "status":"success" + }, + "warnings": [ + { + "id":2001, + "message":"This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request" + } + ] +} +``` + +*JSON-RPC* + +```json +200 OK + +{ + "result": { + "info": { + "complete_ledgers":"32570-73737719", + "load_factor":1, + "clio_version":"1.0.2", + "validation_quorum":28, + "rippled_version":"1.9.1", + "validated_ledger": { + "age":7, + "hash":"4ECDEAF9E6F8B37EFDE297953168AAB42DEED1082A565639EBB2D29E047341B4", + "seq":73737719, + "base_fee_xrp":1E-5, + "reserve_base_xrp":1E1, + "reserve_inc_xrp":2E0 + }, + "cache": { + "size":15258947, + "is_full":true, + "latest_ledger_seq":73737719 + } + }, + "validated":true, + "status":"success" + }, + "warnings": [ + { + "id":2001, + "message":"This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request" + } + ] +} +``` + + + +レスポンスは[標準フォーマット][]に従い、結果が正常な場合`info`オブジェクトが唯一のフィールドとして含まれます。 + +`info`オブジェクトは以下のフィールドを含むことがあります。 + +| `Field` | 型 | 説明 | +|:---------------------------------------|:--------------|:---------------------| +| `complete_ledgers` | 文字列 | ローカル`rippled`がデータベース内に有するレジャーのバージョンのシーケンス番号の範囲を示す表現。例えば、`24900901-24900984,24901116-24901158`のように、互いに素なシーケンスの場合があります。サーバに完全なレジャーがない場合(例えば、ネットワークとの同期を始めたばかりの場合)、文字列`empty`になります。 | +| `counters` | オブジェクト | _(省略される場合があります)_ サーバ起動以降に処理されたAPIコールの統計。クライアントが`localhost`経由でClioサーバに接続した場合のみ表示されます。 +| `rpc` | オブジェクト | _(省略される場合があります)_ 起動時からClioサーバが処理した各API呼び出しの統計情報。これは`counters`オブジェクトの中にネストされているので、クライアントが`localhost`経由でClioサーバに接続した場合のみ存在します。 | +| `rpc.*.started` | 数値 | Clioサーバが起動後に処理を開始した、このタイプのAPIコールの数。 | +| `rpc.*.finished` | 数値 | Clioサーバが起動以降に処理を終了した、このタイプのAPIコールの数。 | +| `rpc.*.errored` | 数値 | 起動後に何らかのエラーが発生した、このタイプのAPIコールの数。 | +| `rpc.*.forwarded` | 数値 | 起動してからClioサーバが`rippled`P2Pサーバに転送したAPI呼び出しの数。 | +| `rpc.*.duration_us` | 数値 | 起動時からこのタイプのAPIコールの処理に費やされたマイクロ秒数の合計。 | +| `subscriptions` | オブジェクト | _(省略される場合があります)_ 各ストリームタイプの現在の接続者数。これは`counters`オブジェクトの中にネストされているので、クライアントが`localhost`経由でClioサーバに接続した場合のみ存在します。 | +| `subscriptions.ledger` | | | +| `subscriptions.transactions` | | | +| `subscriptions.transactions_proposed` | | | +| `subscriptions.manifests` | | | +| `subscriptions.validations` | | | +| `subscriptions.account` | | | +| `subscriptions.accounts_proposed` | | | +| `subscriptions.books` | | | +| `time` | 文字列 | サーバの時計によるUTCでの現在時刻。[新規: Clio v2.0](https://github.com/XRPLF/clio/releases/tag/2.0.0 "BADGE_BLUE") | +| `uptime` | 数値 | サーバが連続して稼働している秒数。[新規: Clio v2.0](https://github.com/XRPLF/clio/releases/tag/2.0.0 "BADGE_BLUE") | +| `amendment_blocked` | 真偽値 | _(省略される場合があります)_ Clioサーバが[Amendmentブロック](amendments.html#amendment-blocked-clio-servers)がされているかどうか。[新規: Clio v2.0](https://github.com/XRPLF/clio/releases/tag/2.0.0 "BADGE_BLUE") | +| `load_factor` | 数値 | サーバが現在実行中の、負荷スケーリングされたオープンレジャートランザクションコストを、基本トランザクションコストに適用される乗数として示したもの。例えば、負荷係数`1000`でリファレンストランザクションコストが10 dropである場合、負荷スケーリングされたトランザクションコストは10,000 drop(0.01 XRP)です。負荷係数は、[個々のサーバの負荷係数](transaction-cost.html#ローカル負荷コスト)の最高値、クラスターの負荷係数、[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)、ネットワーク全体の負荷係数によって決まります。 | +| `clio_version` | 文字列 | 実行中のClioサーバのバージョン番号。 | +| `libxrpl_version` | 文字列 | このClioサーバがビルドされた`libxrpl`ライブラリのバージョン番号。[新規: Clio v2.0](https://github.com/XRPLF/clio/releases/tag/2.0.0 "BADGE_BLUE") | +| `validation_quorum` | 数値 | _(省略される場合があります)_ レジャーバージョンを検証するために必要な、信頼できる検証の最小数。状況によっては、サーバがより多くの検証を要求することもあります。この値は`rippled`から取得します。何らかの理由でClioサーバが`rippled`に接続できない場合、このフィールドはレスポンスから省略されることがあります。 | +| `rippled_version` | 文字列 | _(省略される場合があります)_ Clioサーバが接続している`rippled`サーバのバージョン番号。何らかの理由でClioサーバが`rippled`に接続できない場合、このフィールドはレスポンスから省略されることがあります。 | +| `network_id` | 文字列 | _(省略される場合があります)_ このClioサーバが接続している`rippled`が動作しているネットワークのネットワークID。何らかの理由でClioサーバが`rippled`に接続できない場合、このフィールドはレスポンスから省略されることがあります。[新規: Clio v2.0](https://github.com/XRPLF/clio/releases/tag/2.0.0 "BADGE_BLUE") | +| `validated_ledger` | オブジェクト | _(省略される場合があります)_ 完全に検証された最新のレジャーに関する情報。検証済みの最新のレジャーがない場合、レスポンスではこのフィールドは省略され、代わりに`closed_ledger`が含まれます。 | +| `validated_ledger` | オブジェクト | (省略される場合があります)完全に検証された最新のレジャーについての情報。最新の検証済みレジャーが使用できない場合、このフィールドはレスポンスにて省略され、代わりに`closed_ledger`が含まれます。 | +| `validated_ledger.age` | 数値 | レジャーの閉鎖以降の秒数。 | +| `validated_ledger.base_fee_xrp` | 数値 | XRP単位の基本手数料。0.00005の場合は、`1e-05`などの科学的記数法で表すことができます。 | +| `validated_ledger.hash` | 文字列 | 16進数で表された、レジャーの一意のハッシュ | +| `validated_ledger.reserve_base_xrp` | 数値 | すべてのアカウントで準備金として保有しておく必要があるXRPの最少額(drop数ではありません) | +| `validated_ledger.reserve_inc_xrp` | 数値 | アカウントがレジャー内に保有するオブジェクトごとのアカウント準備金に追加するXRP額(drop数ではありません) | +| `validated_ledger.seq` | 数値 | 最新の検証済みレジャーのレジャーインデックス | +| `validation_quorum` | 数値 | レジャーバージョンの検証に、最低限必要となる信頼できる検証の数。場合によっては、サーバがさらに検証を要求する場合があります。 | +| `validator_list_expires` | 文字列 | _(管理者のみ)_ 現在のバリデータリストの有効期限が切れるタイミングを人間が読み取れる時間でを表示、または、サーバが発行済みのバリデータリストをロードしていない場合は文字列`unknown`、サーバが静的なバリデータリストを使用する場合は文字列`never`のいずれかを表示します。 | +| `cache` | オブジェクト | Clioの状態データのキャッシュに関する情報。 | +| `cache.size` | 数値 | 現在キャッシュ内にある状態データオブジェクトの数。 | +| `cache.is_full` | 真偽値 | キャッシュに特定のレジャーのすべての状態データが含まれている場合はtrue、そうでない場合はfalse。[book_offersメソッド][] などの一部の API 呼び出しは、キャッシュが完全な場合、より高速に処理されます。 | +| `cache.latest_ledger_seq` | 数値 | キャッシュに保存されている、検証済みの最新のレジャーの[レジャーインデックス][]。 | +| `etl` | オブジェクト | Clioサーバが接続している`rippled`ソース(ETLソース)。クライアントが`localhost`経由で Clioサーバに接続した場合のみ表示されます。 | +| `etl.etl_sources` | オブジェクト配列 | Clioサーバが接続され、データを抽出する`rippled`ソース(ETLソース)を表示します。 | +| `etl.etl_sources.validated_range` | 文字列 | P2Pの`rippled`サーバから取得した有効なレジャーの範囲。 | +| `etl.etl_sources.is_connected` | 真偽値 | ClioがWebSocket経由でこのソースに接続されていればTrue、そうでなければFalse。ここでfalseが指定された場合は、ネットワークの問題や `rippled`が実行されていないことなどが考えられます。 | +| `etl.etl_sources.ip` | 数値 | `rippled`サーバのIP。 | +| `etl.etl_sources.ws_port` | 数値 | `rippled`サーバのWebSocketポート。 | +| `etl.etl_sources.grpc_port` | 数値 | Clioサーバが接続しているP2P`rippled`サーバのgRPC接続ポート。 | +| `etl.etl_sources.last_msg_age_seconds` | 数値 | Clioが最後に`rippled`から何かを取得してからの経過秒数の合計。これは8より大きくなってはいけません。 | +| `etl.is_writer` | 真偽値 | このClioサーバが現在データベースにデータを書き込んでいる場合はtrue、そうでない場合はfalse。| +| `etl.read_only` | 真偽値 | このClioサーバが読み込み専用モードで設定されている場合はtrue、そうでない場合はfalse。 | +| `etl.last_publish_age_seconds` | 数値 | このClioサーバが最後にレジャーを公開してからの経過時間(秒)。これは8以上であってはなりません。 | +| `validated` | 真偽値 | Trueの場合、レスポンスがコンセンサスによって検証されたレジャーバージョンを使用していることを示します。Clioでは、検証済みのレジャーデータを保存して返すため、これは常にtrueです。リクエストが`rippled`に転送され、サーバが現在のデータを返した場合、値がないかfalseの場合は、このレジャーのデータが確定でないことを示します。 | +| `status` | 文字列 | APIリクエストのステータスを返します。リクエストが正常に完了した場合は`success`を返します。 | + + +## 考えられるエラー + +* いずれかの[汎用エラータイプ][]。 + + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md index 1954e1dd85..7a211c7a11 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md @@ -22,8 +22,6 @@ label: "id":14, "command":"ledger", "ledger_index":"validated", - "full": false, - "accounts": false, "transactions": false, "expand": false, "owner_funds": false @@ -38,8 +36,6 @@ label: "params":[ { "ledger_index":"validated", - "accounts": false, - "full": false, "transactions": false, "expand": false, "owner_funds": false @@ -63,19 +59,18 @@ rippled ledger current 要求には以下のパラメーターを含めることができます。 -| `Field` | 型 | 説明 | -|:---------------|:---------------------------|:-------------------------------| -| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]を参照してください) | -| `ledger_index` | 文字列または符号なし整数 | _(省略可)_ 使用するレジャーのシーケンス番号、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]を参照してください) | -| `full` | ブール値 | _(省略可)_ **管理者が必要。** `true`の場合、レジャー全体に関するすべての情報が返されます。レジャーバージョンを指定しない場合は無視されます。デフォルトでは`false`です。(これは`transactions`、`accounts`、および`expand`を有効にする操作と同等です。) **注意:** 数百メガバイトのオーダーについて、非常に大量のデータが返されます。 | -| `accounts` | ブール値 | _(省略可)_ **管理者が必要。** `true`の場合、レジャーのアカウントに関する情報が返されます。レジャーバージョンを指定しない場合は無視されます。デフォルトでは`false`です。**注意:** 非常に大量のデータが返されます。 | -| `transactions` | ブール値 | _(省略可)_ `true`の場合、指定されたレジャーバージョンのトランザクションに関する情報が返されます。デフォルトでは`false`です。レジャーバージョンを指定しない場合は無視されます。 | -| `expand` | ブール値 | _(省略可)_ ハッシュのみではなく、トランザクション/アカウントの完全な情報がJSONフォーマットで提供されます。デフォルトでは`false`です。トランザクション、アカウント、またはその両方を要求しない場合は無視されます。 | -| `owner_funds` | ブール値 | _(省略可)_ `true`の場合、応答のOfferCreateトランザクションのメタデータに`owner_funds`フィールドが含まれます。デフォルトでは`false`です。トランザクションが含まれておらず、`expand`がtrueではない場合には無視されます。 | -| `binary` | ブール値 | _(省略可)_ `true`で、かつ`transactions`と`expand`が両方とも`true`の場合、JSONフォーマットではなくバイナリフォーマット(16進文字列)でトランザクション情報が返されます。[新規: rippled 0.28.0][] | -| `queue` | ブール値 | _(省略可)_ `true`で、かつコマンドが`current`レジャーを要求している場合、[キューに入れらているトランザクション](transaction-cost.html#キューに入れられたトランザクション)の配列が結果に含まれます。 +| `Field` | 型 | 必須? | 説明 | +|:---------------|:---------------------|:------|:-------------------------------| +| `ledger_hash` | [ハッシュ][] | いいえ | 使用するレジャーバージョンの20バイトの16進文字列。([レジャーの指定][]ご覧ください。) | +| `ledger_index` | [レジャーインデックス][] | いいえ | 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列。([レジャーの指定][]をご覧ください) | +| `transactions` | 真偽値 | いいえ | `true`の場合、指定されたレジャーバージョンのトランザクションに関する情報が返されます。デフォルトでは`false`です。レジャーバージョンを指定しない場合は無視されます。 | +| `expand` | 真偽値 | いいえ | ハッシュのみではなく、トランザクション/アカウントの完全な情報がJSONフォーマットで提供されます。デフォルトでは`false`です。トランザクション、アカウント、またはその両方を要求しない場合は無視されます。 | +| `owner_funds` | 真偽値 | いいえ | `true`の場合、応答のOfferCreateトランザクションのメタデータに`owner_funds`フィールドが含まれます。デフォルトでは`false`です。トランザクションが含まれておらず、`expand`がtrueではない場合には無視されます。 | +| `binary` | 真偽値 | いいえ | `true`で、かつ`transactions`と`expand`が両方とも`true`の場合、JSONフォーマットではなくバイナリフォーマット(16進文字列)でトランザクション情報が返されます。 | +| `queue` | 真偽値 | いいえ | `true`で、かつコマンドが`current`レジャーを要求している場合、[キューに入れらているトランザクション](transaction-cost.html#キューに入れられたトランザクション)の配列が結果に含まれます。 -`ledger`フィールドは廃止予定であり、今後予告なしに削除される可能性があります。 + +`ledger`フィールドは廃止予定であり、今後予告なしに削除される可能性があります。`full`、`accounts`、`type`フィールド(管理者専用)も非推奨です。 ## 応答フォーマット @@ -86,34 +81,7 @@ rippled ledger current *WebSocket* ```json -{ - "id":4, - "status":"success", - "type":"response", - "result":{ - "ledger":{ - "accepted": true, - "account_hash":"FD2709F6C07284C3EE85EDE32AC452D9013A89D9B9E781D67D9784457E86A9BB", - "close_flags":0, - "close_time":508541181, - "close_time_human":"2016-Feb-11 21:26:21", - "close_time_resolution":10, - "closed": true, - "hash":"F1433E9D15F33E746B8820DEEE4879F48181704364E459332561DF8E52E4EB7E", - "ledger_hash":"F1433E9D15F33E746B8820DEEE4879F48181704364E459332561DF8E52E4EB7E", - "ledger_index":"18851530", - "parent_close_time":508541180, - "parent_hash":"8300B70AA5A865961DED7DAC5B88047028762D5946ECA887D09D32DE442E2305", - "seqNum":"18851530", - "totalCoins":"99998102799411646", - "total_coins":"99998102799411646", - "transaction_hash":"E0DB0471A1D198611E1C050ADA4AE74EEB38CEC26E0550663E0FCB1364212A3B" - }, - "ledger_hash":"F1433E9D15F33E746B8820DEEE4879F48181704364E459332561DF8E52E4EB7E", - "ledger_index":18851530, - "validated": true - } -} +{% include '_api-examples/ledger/ws-response.json' %} ``` *JSON-RPC* @@ -121,74 +89,60 @@ rippled ledger current ```json 200 OK -{ - "result":{ - "ledger":{ - "accepted": true, - "account_hash":"B089E7CD4F5167249951611AAEC863D4BF84FF098500E9CB50561F1A89EED825", - "close_flags":0, - "close_time":508541222, - "close_time_human":"2016-Feb-11 21:27:02", - "close_time_resolution":10, - "closed": true, - "hash":"85E6D422F1A3AE0BEA315C4F09CD0B45022312A4BBF0D308246E901536B61157", - "ledger_hash":"85E6D422F1A3AE0BEA315C4F09CD0B45022312A4BBF0D308246E901536B61157", - "ledger_index":"18851543", - "parent_close_time":508541221, - "parent_hash":"C382DB117F2D5AAECFBFB43EA509F8E56D6E1D1297CE00C0D02A3EE695ABB78F", - "seqNum":"18851543", - "totalCoins":"99998102795090646", - "total_coins":"99998102795090646", - "transaction_hash":"BEC71A3CAD11BFC4E4013CD109F220E0850E9A3808B15FAA6DAE4D898970EFAF" - }, - "ledger_hash":"85E6D422F1A3AE0BEA315C4F09CD0B45022312A4BBF0D308246E901536B61157", - "ledger_index":18851543, - "status":"success", - "validated": true - } -} +{% include '_api-examples/ledger/jsonrpc-response.json' %} +``` + +*コマンドライン* + +```json +Loading: "/etc/opt/ripple/rippled.cfg" +2023-Nov-01 21:38:14.638871262 UTC HTTPClient:NFO Connecting to 127.0.0.1:5005 + +{% include '_api-examples/ledger/jsonrpc-response.json' %} ``` 応答は[標準フォーマット][]に従っており、正常に完了した場合は結果にレジャーに関する情報を表す次のフィールドが含まれています。 -| `Field` | 型 | 説明 | -|:-------------------------------|:--------|:----------------------------------| -| `ledger` | オブジェクト | このレジャーの完全なヘッダーデータ。 | -| `ledger.account_hash` | 文字列 | このレジャーのすべてのアカウント状態情報のハッシュ(16進数) | -| `ledger.accountState` | 配列 | (要求されていない場合は省略)このレジャーのすべての[アカウント状態情報](ledger-data-formats.html)。 | -| `ledger.close_flags` | 整数 | このレジャーの閉鎖に関連するフラグのビットマップ。現在、レジャーでは1つのフラグだけが`close_flags`として定義されています(**sLCF_NoConsensusTime**(値1))。このフラグが有効な場合、レジャーの正確な閉鎖時刻についてバリデータの間で意見が対立しましたが、作成しているレジャーは同一のものであるため、バリデータは閉鎖時刻について「合意をしないことに合意する」とした上でコンセンサスを宣言しました。この場合、コンセンサスレジャーの`close_time`の値は直前のバージョンの閉鎖時刻の1秒後です。(この場合、正式な閉鎖時刻がありませんが、実際の閉鎖時刻はおそらく指定されている`close_time`の3~6秒後です。) | -| `ledger.close_time` | 整数 | レジャーが閉鎖された時刻([Rippleエポック以降の経過秒数][]) | -| `ledger.close_time_human` | 文字列 | 人間が読めるフォーマットでのこのレジャーが閉鎖された時刻 | -| `ledger.close_time_resolution` | 整数 | レジャー閉鎖時刻はこの秒数の範囲内で丸めらます。 | -| `ledger.closed` | ブール値 | このレジャーが閉鎖されているかどうか。 | -| `ledger.ledger_hash` | 文字列 | レジャー全体の一意の識別用ハッシュ。 | -| `ledger.ledger_index` | 文字列 | このレジャーの[レジャーインデックス][]。整数を引用符で囲んだ形式で示されます。 | -| `ledger.parent_close_time` | 整数 | 前のレジャーが閉鎖された時刻。 | -| `ledger.parent_hash` | 文字列 | このレジャーの直前のレジャーの一意の識別用ハッシュ。 | -| `ledger.total_coins` | 文字列 | ネットワークのXRPの合計(drop数)。整数を引用符で囲んだ形式で示されます。(トランザクションコストによりXRPが消却されると、この値は減少します。) | -| `ledger.transaction_hash` | 文字列 | このレジャーに記録されているトランザクション情報のハッシュ(16進数) | -| `ledger.transactions` | 配列 | (要求されていない場合は省略)このレジャーバージョンで適用されたトランザクション。デフォルトでは、メンバーはトランザクションの識別用[ハッシュ][]文字列です。要求で`expand`がtrueとして指定されている場合は、メンバーはJSONフォーマットまたはバイナリフォーマットでのトランザクションの完全な表現です。フォーマットは、要求で`binary`がtrueとして指定されていたかどうかに応じて決まります。 | -| `ledger_hash` | 文字列 | レジャー全体の一意の識別用ハッシュ。 | -| `ledger_index` | 数値 | このレジャーの[レジャーインデックス][]。 | -| `queue_data` | 配列 | (`queue`パラメーターで要求されている場合を除いて省略)キューに入れられたトランザクションをキューと同じ順序で記述するオブジェクトの配列。要求で`expand`がtrueに指定されている場合は、メンバーにはJSONフォーマットまたはバイナリフォーマットでのトランザクションの完全な表現が含まれています。フォーマットは、要求で`binary`がtrueとして指定されていたかどうかによって決まります。[FeeEscalation Amendment][]により追加されました。[新規: rippled 0.70.0][] | +| `Field` | 型 | 説明 | +|:-------------------------------|:------------|:--------------------------| +| `ledger` | オブジェクト | このレジャーの完全な[レジャーヘッダのデータ](ledger-header.html)で、便宜上いくつかのフィールドが追加されています。 | +| `ledger.account_hash` | 文字列 | このレジャーのすべてのアカウント状態情報の[ハッシュ][](16進数) | +| `ledger.accountState` | 配列 | このレジャーのすべての[アカウント状態情報](ledger-data-formats.html)(16進数)。 | +| `ledger.close_flags` | 整数 | このレジャーの[クローズに関するフラグ](ledger-header.html#close-flags)のビットマップ。 | +| `ledger.close_time` | 整数 | レジャーが閉鎖された時刻([Rippleエポック以降の経過秒数][])。 | +| `ledger.close_time_human` | 文字列 | 人間が読めるフォーマットでのこのレジャーが閉鎖された時刻。常にUTCタイムゾーンを使用します。 | +| `ledger.close_time_resolution` | 整数 | レジャー閉鎖時刻が丸められる秒数の範囲。 | +| `ledger.closed` | 真偽値 | このレジャーが閉鎖されているかどうか。 | +| `ledger.ledger_hash` | 文字列 | レジャー全体の一意の識別用ハッシュ。 | +| `ledger.ledger_index` | 文字列 | このレジャーの[レジャーインデックス][]。整数を引用符で囲んだ形式で示されます。 | +| `ledger.parent_close_time` | 整数 | 前のレジャーが閉鎖された時刻。 | +| `ledger.parent_hash` | 文字列 | このレジャーの直前のレジャーの一意の識別用ハッシュ。 | +| `ledger.total_coins` | 文字列 | ネットワークのXRPの合計(drop数)。整数を引用符で囲んだ形式で示されます。(トランザクションコストによりXRPが焼却されると、この値は減少します。) | +| `ledger.transaction_hash` | 文字列 | このレジャーに記録されているトランザクション情報のハッシュ(16進数) | +| `ledger.transactions` | 配列 | (要求されていない場合は省略)このレジャーバージョンで適用されたトランザクション。デフォルトでは、メンバーはトランザクションの識別用[ハッシュ][]文字列です。要求で`expand`がtrueとして指定されている場合は、メンバーはJSONフォーマットまたはバイナリフォーマットでのトランザクションの完全な表現です。フォーマットは、要求で`binary`がtrueとして指定されていたかどうかに応じて決まります。 | +| `ledger_hash` | 文字列 | レジャー全体の一意の識別用ハッシュ。 | +| `ledger_index` | 数値 | このレジャーの[レジャーインデックス][]。 | +| `queue_data` | 配列 | (`queue`パラメーターで要求されている場合を除いて省略)キューに入れられたトランザクションをキューと同じ順序で記述するオブジェクトの配列。要求で`expand`がtrueに指定されている場合は、メンバーにはJSONフォーマットまたはバイナリフォーマットでのトランザクションの完全な表現が含まれています。フォーマットは、要求で`binary`がtrueとして指定されていたかどうかによって決まります。 | -以下のフィールドは廃止予定であり、今後予告なしに削除される可能性があります。`accepted`、`hash`(代わりに`ledger_hash`を使用)、`seqNum`(代わりに`ledger_index`を使用)、`totalCoins`(代わりに`total_coins`を使用)。 +`ledger.accountState`フィールド(`"full": true`または`"accounts": true`で要求されない限り省略)は廃止予定です。 + +次のフィールドは廃止予定であり、今後予告なしに削除される可能性があります。`accepted`、`hash`(代わりに`ledger_hash`を使用)、`seqNum`(代わりに`ledger_index`を使用)、`totalCoins`(代わりに`total_coins`を使用)。[更新: rippled 1.12.0][] `queue_data`配列の各メンバーは、キュー内の1つのトランザクションを表します。このオブジェクトの一部フィールドは、まだ計算されていないために省略されることがあります。このオブジェクトのフィールドを次に示します。 -| フィールド | 値 | 説明 | -|:--------------------|:-----------------|:------------------------------------| -| `account` | 文字列 | このキューに入れられたトランザクションの送信者の[アドレス][]。 | +| フィールド | 値 | 説明 | +|:--------------------|:---------------------|:------------------------------------| +| `account` | 文字列 | このキューに入れられたトランザクションの送信者の[アドレス][]。 | | `tx` | 文字列またはオブジェクト | デフォルトでは、これはトランザクションの[識別用ハッシュ](basic-data-types.html#ハッシュ)を含む文字列です。トランザクションがバイナリフォーマットで展開されている場合、これは`tx_blob`が唯一のフィールドであるオブジェクトであり、バイナリー形式のトランザクションが10進文字列として含まれています。トランザクションがJSONフォーマットで展開されている場合、これは`hash`フィールドにトランザクションの識別用ハッシュが指定されている[トランザクションオブジェクト](transaction-formats.html)を含むオブジェクトです。 | -| `retries_remaining` | 数値 | このトランザクションの再試行可能回数。この回数を超えるとトランザクションが除外されます。 | -| `preflight_result` | 文字列 | 初期トランザクションチェックの一時的な結果。これは常に`tesSUCCESS`です。 | -| `last_result` | 文字列 | _(省略される場合があります)_[再試行可能な (`ter`) の結果](ter-codes.html)を取得した後でこのトランザクションがキューに残っている場合、これは取得した正確な`ter`結果コードです。 | -| `auth_change` | ブール値 | _(省略される場合があります)_ このトランザクションがこのアドレスの[トランザクション承認方法](transactions.html#トランザクションの承認)を変更するかどうかを示します。 | -| `fee` | 文字列 | _(省略される場合があります)_ このトランザクションの[トランザクションコスト](transaction-cost.html)([XRPのdrop数][])。 | -| `fee_level` | 文字列 | _(省略される場合があります)_ このタイプのトランザクションの最少コストと比較した、このトランザクションのトランザクションコスト([手数料レベル][])。 | -| `max_spend_drops` | 文字列 | _(省略される場合があります)_ このトランザクションで送信または消却できる[XRP、drop単位][]の最高額。 | +| `retries_remaining` | 数値 | このトランザクションの再試行可能回数。この回数を超えるとトランザクションが除外されます。 | +| `preflight_result` | 文字列 | 初期トランザクションチェックの一時的な結果。これは常に`tesSUCCESS`です。 | +| `last_result` | 文字列 | _(省略される場合があります)_[再試行可能な(`ter`)の結果](ter-codes.html)を取得した後でこのトランザクションがキューに残っている場合、これは取得した正確な`ter`結果コードです。 | +| `auth_change` | 真偽値 | _(省略される場合があります)_ このトランザクションがこのアドレスの[トランザクション承認方法](transactions.html#トランザクションの承認)を変更するかどうかを示します。 | +| `fee` | 文字列 | _(省略される場合があります)_ このトランザクションの[トランザクションコスト](transaction-cost.html)([XRPのdrop数][])。 | +| `fee_level` | 文字列 | _(省略される場合があります)_ このタイプのトランザクションの最少コストと比較した、このトランザクションのトランザクションコスト([手数料レベル][])。 | +| `max_spend_drops` | 文字列 | _(省略される場合があります)_ このトランザクションで送信または消却できる[XRP、drop単位][]の最高額。 | 要求に`"owner_funds": true`が指定されておりトランザクションが展開されている場合、応答には、各[OfferCreateトランザクション][]の`metaData`オブジェクトの`owner_funds`フィールドが含まれています。このフィールドの目的は、新しい検証済みレジャーごとに[オファーの資金化ステータス](offers.html#オファーのライフサイクル)を容易に追跡できるようにすることです。このフィールドの定義は、[オーダーブックサブスクリプションストリーム](subscribe.html#オーダーブックストリーム)でのこのフィールドのバージョンとはわずかに異なります。 diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger_entry.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger_entry.md index d9380abdff..770f5f3aca 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger_entry.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger_entry.md @@ -9,7 +9,7 @@ label: # ledger_entry [[ソース]](https://github.com/xrplf/rippled/blob/master/src/ripple/rpc/handlers/LedgerEntry.cpp "Source") -`ledger_entry`メソッドは、XRP Ledgerの1つのレジャーオブジェクトを生フォーマットで返します。取得可能な各種オブジェクトについては、[レジャーフォーマット][]を参照してください。 +`ledger_entry`メソッドは、XRP Ledgerの1つのレジャーオブジェクトを生フォーマットで返します。取得可能な各種オブジェクトについては、[レジャーフォーマット][]をご覧ください。 ## 要求フォーマット @@ -22,8 +22,8 @@ label: | フィールド | 型 | 説明 | |:------------------------|:-----------------------|:----------------------| | `binary` | ブール値 | _(省略可)_ `true`の場合、要求したレジャーオブジェクトの内容がXRP Ledgerの[バイナリ形式](serialization.html)の16進数の文字列として返されます。それ以外の場合はデータがJSONフォーマットで返されます。デフォルトは`false`です。[更新: rippled 1.2.0][] | -| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進数の文字列。([レジャーの指定][]を参照してください | -| `ledger_index` | 文字列 または 符号なし整数 | _(省略可)_ 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列("validated"や"closed"、"current"など)。([レジャーの指定][]を参照してください) | +| `ledger_hash` | 文字列 | _(省略可)_ 使用するレジャーバージョンの20バイトの16進数の文字列。([レジャーの指定][]をご覧ください。 | +| `ledger_index` | 文字列 または 符号なし整数 | _(省略可)_ 使用するレジャーの[レジャーインデックス][]、またはレジャーを自動的に選択するためのショートカット文字列("validated"や"closed"、"current"など)。([レジャーの指定][]をご覧ください。 | `generator`と`ledger`パラメータは非推奨であり、予告なく削除される可能性があります。 @@ -32,6 +32,7 @@ label: - [`index`](#idからレジャーオブジェクトを取得する) - [`account_root`](#accountrootオブジェクトを取得する) - [`directory`](#directorynodeオブジェクトを取得する) +- [`amm`](#ammオブジェクトを取得する) :not_enabled: - [`offer`](#offerオブジェクトを取得する) - [`ripple_state`](#ripplestateオブジェクトを取得する) - [`check`](#checkオブジェクトを取得する) @@ -41,7 +42,7 @@ label: - [`ticket`](#ticketオブジェクトを取得する) - [`nft_page`](#nft-pageを取得する) -**注意:** リクエストでこれらの型固有のフィールドを1つ以上指定した場合、サーバはそのうちの1つだけの結果を取得します。サーバがどれを選択するかは定義されていないため、こうした行為は避けるべきです。 +**注意:** リクエストでこれらの型固有のフィールドを1つ以上指定した場合、サーバはそのうちの1つだけの結果を取得します。サーバがどれを選択するかは定義されていないため、こうした指定方法は避けるべきです。 ### IDからレジャーオブジェクトを取得する @@ -144,6 +145,73 @@ rippled json ledger_entry '{ "account_root": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 +### AMMオブジェクトを取得する + +_([AMM amendment][] :not_enabled:が必要です。)_ + +レジャーからAutomated Market-Maker(AMM)オブジェクトを取得します。これは[amm_infoメソッド][]と似ていますが、`ledger_entry`は保存されているレジャーエントリのみを返します。 + +| フィールド | 型 | 説明 | +|:-------------|:---------------------|:----------------------| +| `amm` | オブジェクトまたは文字列 | 取得する[AMM](amm.html)。文字列を指定する場合は、AMMの[オブジェクトID](ledger-object-ids.html)を16進数で指定しなければなりません。オブジェクトを指定する場合は、`asset`と`asset2`のサブフィールドを含む必要があります。 | +| `amm.asset` | オブジェクト | このAMMのプールにある2つの資産のうちのひとつを、[金額なしの通貨オブジェクト](currency-formats.html#金額なしでの通貨の指定)として指定します。 | +| `amm.asset2` | オブジェクト | このAMMのプールにある2つの資産のうちのもうひとつを、[金額なしの通貨オブジェクト](currency-formats.html#金額なしでの通貨の指定)として指定します。 | + + + +*WebSocket* + +```json +{ + "id": 3, + "command": "ledger_entry", + "amm": { + "asset": { + "currency": "XRP" + }, + "asset2": { + "currency" : "TST", + "issuer" : "rP9jPyP5kyvFRb6ZiRghAGw5u8SGAmU4bd" + } + } + "ledger_index": "validated" +} +``` + +*JSON-RPC* + +```json +{ + "method": "ledger_entry", + "params": [ + { + "amm": { + "asset": { + "currency": "XRP" + }, + "asset2": { + "currency" : "TST", + "issuer" : "rP9jPyP5kyvFRb6ZiRghAGw5u8SGAmU4bd" + } + }, + "ledger_index": "validated" + } + ] +} +``` + +*Commandline* + +```sh +rippled json ledger_entry '{ "amm": { "asset": { "currency": "XRP" }, "asset2": { "currency" : "TST", "issuer" : "rP9jPyP5kyvFRb6ZiRghAGw5u8SGAmU4bd" } }, "ledger_index": "validated" }' +``` + + + +[試してみる >](websocket-api-tool.html?server=wss%3A%2F%2Famm.devnet.rippletest.net%3A51233%2F#ledger_entry-amm) + + + ### DirectoryNodeオブジェクトを取得する 他のレジャーオブジェクトのリストを含む[DirectoryNode](directorynode.html)を取得します。文字列(DirectoryのオブジェクトID)またはオブジェクトを指定します。 diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/path-and-order-book-methods/amm_info.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/path-and-order-book-methods/amm_info.md index a52ec62e96..faa43ea61a 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/path-and-order-book-methods/amm_info.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/path-and-order-book-methods/amm_info.md @@ -62,12 +62,12 @@ _([AMM amendment][] :not_enabled:が必要です。)_ リクエストには以下のパラメーターが含まれます。 -| `フィールド` | 型 | 必須? | 説明 | -|:-----------|:-----------------------|:------|:-----------------------------------| -| `account` | 文字列 - [アドレス][] | いいえ | この流動性プロバイダーが保有するLPトークンのみを表示します。 | -| `amm_account` | 文字列 - [アドレス][] | いいえ | AMMの特別なAccountRootのアドレス。(これはAMMのLPトークンの`issuer`です)。 | -| `asset` | オブジェクト または 文字列 | いいえ | [通貨額][Currency Amount]のように、`currency`と`issuer`フィールドを持つオブジェクトとして(XRPの場合は`issuer`を省略)、検索するAMMの資産の一つを指定します。XRPの場合は、オブジェクトではなく文字列`XRP`として指定することもできます。 | -| `asset2` | オブジェクト または 文字列 | いいえ | AMMの資産のもう一方を、`currency`と`issuer`フィールド(XRPの場合は`issuer`を省略)を持つオブジェクトとして、[通貨額][Currency Amount]のように指定することが可能です。 | +| `フィールド` | 型 | 必須? | 説明 | +|:--------------|:-----------------------|:------|:-----------------------------------| +| `account` | 文字列 - [アドレス][] | いいえ | この流動性プロバイダーが保有するLPトークンのみを表示します。 | +| `amm_account` | 文字列 - [アドレス][] | いいえ | AMMの特別なAccountRootのアドレス。(これはAMMのLPトークンの`issuer`です)。 | +| `asset` | オブジェクト または 文字列 | いいえ | [通貨額][Currency Amount]のように、`currency`と`issuer`フィールドを持つオブジェクトとして(XRPの場合は`issuer`を省略)、検索するAMMの資産の一つを指定します。XRPの場合は、オブジェクトではなく文字列`XRP`として指定することもできます。 | +| `asset2` | オブジェクト または 文字列 | いいえ | AMMの資産のもう一方を、`currency`と`issuer`フィールド(XRPの場合は`issuer`を省略)を持つオブジェクトとして、[通貨額][Currency Amount]のように指定することが可能です。 | `amm_account`、または`asset`と`asset2`の両方を指定する必要があります。 @@ -197,7 +197,7 @@ _([AMM amendment][] :not_enabled:が必要です。)_ | `amm` | オブジェクト | リクエストに含まれる資産ペアの[**AMM詳細オブジェクト**](#amm詳細オブジェクト)です。 | | `ledger_current_index` | [レジャーインデックス][] | _(`ledger_index`の指定がある場合は省略)_ この情報を取得する際に使用された、現在の進行中の台帳の[レジャーインデックス][]。 | | `ledger_hash` | [ハッシュ][] | _(`ledger_current_index`の指定がある場合は省略)_ この情報を取得する際に使用された台帳のバージョンの識別ハッシュ。 | -| `ledger_index` | [レジャーインデックス][] | _(`ledger_current_index`の指定がある場合は省略_ この情報を取得する際に使用した台帳のバージョンの[レジャーインデックス][]。 | +| `ledger_index` | [レジャーインデックス][] | _(`ledger_current_index`の指定がある場合は省略)_ この情報を取得する際に使用した台帳のバージョンの[レジャーインデックス][]。 | | `validated` | 真偽値 | もし`true`なら、このリクエストに使用された台帳は検証済みで、これらの結果は最終的なものです。もし省略されるか`false`に設定されると、データは未確定で変更される可能性があります。 | diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md new file mode 100644 index 0000000000..1eb9ab3aa5 --- /dev/null +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md @@ -0,0 +1,155 @@ +--- +html: manifest.html +parent: server-info-methods.html +blurb: 既知のバリデータに関する公開情報を調べます。 +labels: + - ブロックチェーン +--- +# manifest +[[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/rpc/handlers/Manifest.cpp "ソース") + +`{{currentpage.name}}`メソッドは、指定したバリデータ公開鍵の現在の"マニフェスト"情報を報告します。"マニフェスト"は、バリデータのマスターキーペアから署名付きの公開鍵(ephemeral signing key)を認証するためのデータブロックです。[更新: rippled 1.7.0][]. + + +### リクエストのフォーマット + +リクエストのフォーマットの例: + + + +*WebSocket* + +```json +{ + "command": "{{currentpage.name}}", + "public_key": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p" +} +``` + +*JSON-RPC* + +```json +{ + "method": "{{currentpage.name}}", + "params": [{ + "public_key":"nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p" + }] +} +``` + +*コマンドライン* + +```sh +#Syntax: {{currentpage.name}} public_key +rippled {{currentpage.name}} nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p +``` + + + +リクエストには以下のパラメータが含まれます。 + +| `Field` | 型  | 説明 | +|:-------------|:------|:-----------------------------------| +| `public_key` | 文字列 | 検索するバリデータの[base58][]エンコードされた公開鍵。マスター公開鍵あるいはエフェメラル公開鍵を指定します。 | + + +### レスポンスのフォーマット + +成功したレスポンスの例: + + + +*WebSocket* + +```json +{ + "result": { + "details": { + "domain": "", + "ephemeral_key": "n9J67zk4B7GpbQV5jRQntbgdKf7TW6894QuG7qq1rE5gvjCu6snA", + "master_key": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p", + "seq": 1 + }, + "manifest": "JAAAAAFxIe3AkJgOyqs3y+UuiAI27Ff3Mrfbt8e7mjdo06bnGEp5XnMhAhRmvCZmWZXlwShVE9qXs2AVCvhVuA/WGYkTX/vVGBGwdkYwRAIgGnYpIGufURojN2cTXakAM7Vwa0GR7o3osdVlZShroXQCIH9R/Lx1v9rdb4YY2n5nrxdnhSSof3U6V/wIHJmeao5ucBJA9D1iAMo7YFCpb245N3Czc0L1R2Xac0YwQ6XdGT+cZ7yw2n8JbdC3hH8Xu9OUqc867Ee6JmlXtyDHzBdY/hdJCQ==", + "requested": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p" + }, + "status": "success", + "type": "response" +} +``` + +*JSON-RPC* + +```json +200 OK + +{ + "result": { + "details": { + "domain": "", + "ephemeral_key": "n9J67zk4B7GpbQV5jRQntbgdKf7TW6894QuG7qq1rE5gvjCu6snA", + "master_key": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p", + "seq": 1 + }, + "manifest": "JAAAAAFxIe3AkJgOyqs3y+UuiAI27Ff3Mrfbt8e7mjdo06bnGEp5XnMhAhRmvCZmWZXlwShVE9qXs2AVCvhVuA/WGYkTX/vVGBGwdkYwRAIgGnYpIGufURojN2cTXakAM7Vwa0GR7o3osdVlZShroXQCIH9R/Lx1v9rdb4YY2n5nrxdnhSSof3U6V/wIHJmeao5ucBJA9D1iAMo7YFCpb245N3Czc0L1R2Xac0YwQ6XdGT+cZ7yw2n8JbdC3hH8Xu9OUqc867Ee6JmlXtyDHzBdY/hdJCQ==", + "requested": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p", + "status": "success" + } +} +``` + +*コマンドライン* + +```json +Loading: "/etc/rippled.cfg" +Connecting to 127.0.0.1:5005 + +{ + "result": { + "details": { + "domain": "", + "ephemeral_key": "n9J67zk4B7GpbQV5jRQntbgdKf7TW6894QuG7qq1rE5gvjCu6snA", + "master_key": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p", + "seq": 1 + }, + "manifest": "JAAAAAFxIe3AkJgOyqs3y+UuiAI27Ff3Mrfbt8e7mjdo06bnGEp5XnMhAhRmvCZmWZXlwShVE9qXs2AVCvhVuA/WGYkTX/vVGBGwdkYwRAIgGnYpIGufURojN2cTXakAM7Vwa0GR7o3osdVlZShroXQCIH9R/Lx1v9rdb4YY2n5nrxdnhSSof3U6V/wIHJmeao5ucBJA9D1iAMo7YFCpb245N3Czc0L1R2Xac0YwQ6XdGT+cZ7yw2n8JbdC3hH8Xu9OUqc867Ee6JmlXtyDHzBdY/hdJCQ==", + "requested": "nHUFE9prPXPrHcG3SkwP1UzAQbSphqyQkQK9ATXLZsfkezhhda3p", + "status": "success" + } +} +``` + + + + + +レスポンスは[標準フォーマット][]に従い、成功した結果には以下のフィールドが含まれます。 + +| `Field` | 型 | 説明 | +|:------------|:-----------|:------------------------------------------------------| +| `details` | オブジェクト | _(省略される場合があります)_ このマニフェストに含まれるデータ。サーバがリクエストからの`public_key`に対するマニフェストを持っていない場合は省略されます。その内容の完全な説明については、以下の **オブジェクトの詳細** をご覧ください。 | +| `manifest` | 文字列 | _(省略される場合があります)_ base64形式の完全なマニフェストデータ。このデータは[シリアライズ](serialization.html)され、base64エンコードされる前にバイナリになります。サーバがリクエストからの`public_key`に対するマニフェストを持っていない場合は省略されます。 | +| `requested` | 文字列 | リクエストの`public_key`。 | + +#### オブジェクトの詳細 + +もし指定された場合、`details`オブジェクトは以下のフィールドを含みます。 + +| `Field` | 型 | 説明 | +|:----------------|:------|:--------------------------------------------------| +| `domain` | 文字列 | このバリデータが関連していると示すドメイン名。マニフェストにドメインが含まれていない場合、これは空文字列になります。 | +| `ephemeral_key` | 文字列 | このバリデータのエフェメラル公開鍵を、[base58][]で指定します。 | +| `master_key` | 文字列 | このバリデータのマスター公開鍵を、[base58][]で指定します。 | +| `seq` | 数値 | このマニフェストのシーケンス番号。この番号は、バリデータのオペレータがバリデータのトークンを更新してエフェメラルキーをローテーションしたり、設定を変更したりするたびに増加します。 | + + +## 考えられるエラー + +* いずれかの[汎用エラータイプ][]。 +- `invalidParams` - `public_key`フィールドが見つからないか、正しく指定されていません。 +- `reportingUnsupported` - ([レポートモード][]サーバのみ) このメソッドはレポートモードでは使用できません。 + + +{% include '_snippets/rippled-api-links.md' %} +{% include '_snippets/tx-type-links.md' %} +{% include '_snippets/rippled_versions.md' %} diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md index 5e4b386d7c..d51af67105 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md @@ -1,14 +1,14 @@ --- html: server_info.html parent: server-info-methods.html -blurb: rippledサーバーについての各種情報を、人間が読めるフォーマットでサーバーに要求します。 +blurb: サーバについての各種情報を、人間が読めるフォーマットでサーバに要求します。 labels: - コアサーバー --- # server_info (rippled) [[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/rpc/handlers/ServerInfo.cpp "Source") -`server_info`コマンドは、問い合わせ中の`rippled`サーバーについての各種情報を、人間が読めるフォーマットでサーバーに要求します。 +`server_info`コマンドは、問い合わせ中の`rippled`サーバについての各種情報を、人間が読めるフォーマットでサーバに要求します。[Clioサーバ](the-clio-server.html)については、[`server_info` (Clio)](server_info-clio.html)をご覧ください。 ## 要求フォーマット 要求フォーマットの例: @@ -57,108 +57,7 @@ rippled server_info *WebSocket* ```json -{ - "id": 1, - "status": "success", - "type": "response", - "result": { - "info": { - "build_version": "0.30.1-rc3", - "complete_ledgers": "18611104-18614732", - "hostid": "trace", - "io_latency_ms": 1, - "last_close": { - "converge_time_s": 4.003, - "proposers": 5 - }, - "load": { - "job_types": [ - { - "job_type": "untrustedProposal", - "per_second": 2 - }, - { - "in_progress": 1, - "job_type": "clientCommand" - }, - { - "job_type": "transaction", - "per_second": 4 - }, - { - "job_type": "batch", - "per_second": 3 - }, - { - "job_type": "writeObjects", - "per_second": 2 - }, - { - "job_type": "trustedProposal", - "per_second": 1 - }, - { - "job_type": "peerCommand", - "per_second": 108 - }, - { - "job_type": "diskAccess", - "per_second": 1 - }, - { - "job_type": "processTransaction", - "per_second": 4 - }, - { - "job_type": "WriteNode", - "per_second": 63 - } - ], - "threads": 6 - }, - "load_factor": 1000, - "load_factor_net": 1000, - "peers": 10, - "pubkey_node": "n94UE1ukbq6pfZY9j54sv2A1UrEeHZXLbns3xK5CzU9NbNREytaa", - "pubkey_validator": "n9KM73uq5BM3Fc6cxG3k5TruvbLc8Ffq17JZBmWC4uP4csL4rFST", - "server_state": "proposing", - "server_state_duration_us": 92762334, - "state_accounting": { - "connected": { - "duration_us": "150510079", - "transitions": 1 - }, - "disconnected": { - "duration_us": "1827731", - "transitions": 1 - }, - "full": { - "duration_us": "166972201508", - "transitions": 1853 - }, - "syncing": { - "duration_us": "6249156726", - "transitions": 1854 - }, - "tracking": { - "duration_us": "13035222", - "transitions": 1854 - } - }, - "uptime": 173379, - "validated_ledger": { - "age": 3, - "base_fee_xrp": 0.00001, - "hash": "04F7CF4EACC57140C8088F6BFDC8A824BB3ED5717C3DAA6642101F9FB446226C", - "reserve_base_xrp": 20, - "reserve_inc_xrp": 5, - "seq": 18614732 - }, - "validation_quorum": 4, - "validator_list_expires" : "2017-Oct-12 16:06:36" - } - } -} +{% include '_api-examples/server_info/ws-response.json' %} ``` *JSON-RPC* @@ -166,169 +65,76 @@ rippled server_info ```json 200 OK -{ - "result" : { - "info" : { - "build_version" : "0.33.0-hf1", - "complete_ledgers" : "24900901-24900984,24901116-24901158", - "hostid" : "trace", - "io_latency_ms" : 1, - "last_close" : { - "converge_time_s" : 2.001, - "proposers" : 5 - }, - "load" : { - "job_types" : [ - { - "in_progress" : 1, - "job_type" : "clientCommand" - }, - { - "job_type" : "transaction", - "per_second" : 6 - }, - { - "job_type" : "batch", - "per_second" : 6 - }, - { - "in_progress" : 1, - "job_type" : "advanceLedger" - }, - { - "job_type" : "trustedValidation", - "per_second" : 1 - }, - { - "avg_time" : 77, - "job_type" : "writeObjects", - "over_target" : true, - "peak_time" : 2990, - "per_second" : 2 - }, - { - "job_type" : "trustedProposal", - "per_second" : 2 - }, - { - "job_type" : "peerCommand", - "per_second" : 205 - }, - { - "avg_time" : 771, - "job_type" : "diskAccess", - "over_target" : true, - "peak_time" : 1934 - }, - { - "job_type" : "processTransaction", - "per_second" : 6 - }, - { - "job_type" : "SyncReadNode", - "per_second" : 4 - }, - { - "job_type" : "WriteNode", - "per_second" : 235 - } - ], - "threads" : 6 - }, - "load_factor" : 4.765625, - "load_factor_local" : 4.765625, - "peers" : 10, - "pubkey_node" : "n9McNsnzzXQPbg96PEUrrQ6z3wrvgtU4M7c97tncMpSoDzaQvPar", - "pubkey_validator" : "n9KM73uq5BM3Fc6cxG3k5TruvbLc8Ffq17JZBmWC4uP4csL4rFST", - "published_ledger" : 24901158, - "server_state" : "proposing", - "server_state_duration_us": 708078257, - "state_accounting" : { - "connected" : { - "duration_us" : "854824665", - "transitions" : 2 - }, - "disconnected" : { - "duration_us" : "2183055", - "transitions" : 1 - }, - "full" : { - "duration_us" : "944104343", - "transitions" : 2 - }, - "syncing" : { - "duration_us" : "9233178", - "transitions" : 1 - }, - "tracking" : { - "duration_us" : "0", - "transitions" : 2 - } - }, - "uptime" : 1792, - "validated_ledger" : { - "age" : 1, - "base_fee_xrp" : 1e-05, - "hash" : "D2C122281EB72E64D19B9654A8D3D0FC4207373D3FE5D91AE516685A58874621", - "reserve_base_xrp" : 20, - "reserve_inc_xrp" : 5, - "seq" : 24901185 - }, - "validation_quorum" : 4, - "validator_list_expires" : "2017-Oct-12 16:06:36" - }, - "status" : "success" - } -} +{% include '_api-examples/server_info/jsonrpc-response.json' %} +``` + +*コマンドライン* + +```json +Loading: "/etc/opt/ripple/rippled.cfg" +2023-Sep-13 22:19:39.404596100 UTC HTTPClient:NFO Connecting to 127.0.0.1:5005 + +{% include '_api-examples/server_info/jsonrpc-response.json' %} ``` 応答は[標準フォーマット][]に従い、結果が正常な場合`info`オブジェクトが唯一のフィールドとして含まれます。 -`info`オブジェクトには、以下のフィールドがいくつか配置される場合があります。 +`info`オブジェクトは以下のフィールドを含むことがあります。 -| `Field` | 型 | 説明 | -|:------------------------------------|:--------------------------|:-----------| -| `amendment_blocked` | ブール値 | _(省略される場合があります)_`true`の場合、このサーバーは[Amendment blocked](amendments.html#amendment-blocked)の状態です。サーバーがAmendment blockedの状態でない場合、このフィールドは応答から省略されます。[新規: rippled 0.80.0][] | -| `build_version` | 文字列 | 実行中の`rippled`バージョンのバージョン番号。 | -| `closed_ledger` | オブジェクト | (省略される場合があります)コンセンサスによってまだ検証されていない、最も最近更新を閉鎖したレジャーについての情報。最新の検証済みレジャーが使用可能な場合、このフィールドは応答で省略され、代わりに`validated_ledger`が含まれます。メンバーフィールドは`validated_ledger`フィールドと同じです。 | -| `complete_ledgers` | 文字列 | ローカル`rippled`がデータベース内に有するレジャーのバージョンのシーケンス番号の範囲を示す表現。例えば、`24900901-24900984,24901116-24901158`のように、互いに素なシーケンスの場合があります。サーバーに完全なレジャーがない場合(例えば、ネットワークとの同期を始めたばかりの場合)、文字列`empty`になります。 | -| `hostid` | 文字列 | admin要求の場合、`rippled`インスタンスを実行するサーバーのホスト名が返されます。それ以外の要求の場合、一意の4文字の単語が返されます。 | -| `io_latency_ms` | 数値 | I/O処理の待ち時間(ミリ秒単位)。この数値がそれほど低くない場合、`rippled`サーバーは深刻な負荷の問題を抱えている可能性があります。 | -| `last_close` | オブジェクト | サーバーが最後にレジャーを閉鎖したときの情報。これには、コンセンサスの取得に要した時間や、参加した信頼できるバリデータ(検証者)の数が含まれます。 | -| `load` | オブジェクト | _(管理者のみ)_ サーバーの現在の負荷状態についての詳細な情報。 | -| `load.job_types` | 配列 | _(管理者のみ)_ サーバーが実行している各種ジョブのレートや、各ジョブにかかる時間についての情報。 | -| `load.threads` | 数値 | _(管理者のみ)_ サーバーの主要なジョブプール内のスレッドの数。 | -| `load_factor` | 数値 | サーバーが現在施行中の、負荷スケーリングされたオープンレジャートランザクションコストを、基本トランザクションコストに適用される乗数として示したもの。例えば、負荷係数`1000`でリファレンストランザクションコストがXRP 10 dropである場合、負荷スケーリングされたトランザクションコストは10,000 drop(0.01 XRP)です。負荷係数は、[個々のサーバーの負荷係数](transaction-cost.html#ローカル負荷コスト)の最高値、クラスターの負荷係数、[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)、ネットワーク全体の負荷係数によって決まります。[更新: rippled 0.33.0][新規: rippled 0.33.0] | -| `load_factor_local` | 数値 | (省略される場合があります)このサーバーに対する負荷に基づく、[トランザクションコスト][]に適用される現在の乗数。 | -| `load_factor_net` | 数値 | (省略される場合があります)ネットワークのその他の部分で使用されている、[トランザクションコスト][]に適用される現在の乗数(他のサーバーから報告された負荷値から推定します)。 | -| `load_factor_cluster` | 数値 | (省略される場合があります)[このクラスター](clustering.html)内のサーバーに対する負荷に基づく、[トランザクションコスト][]に適用される現在の乗数。 | -| `load_factor_fee_escalation` | 数値 | (省略される場合があります)オープンレジャーに入るために取引が支払う必要がある[トランザクションコスト][]に適用される現在の乗数。[新規: rippled 0.32.0][] | -| `load_factor_fee_queue` | 数値 | (省略される場合があります)キューが一杯になっている場合に、キューに入るために取引が支払う必要がある[トランザクションコスト][]に適用される現在の乗数。[新規: rippled 0.32.0][] | -| `load_factor_server` | 数値 | (省略される場合があります)サーバーが実施中の負荷係数。[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)は含まれません。[新規: rippled 0.33.0][] | -| `peers` | 数値 | このサーバーが現在接続している、他の`rippled`サーバーの数。 | -| `pubkey_node` | 文字列 | ピアツーピア通信の中でこのサーバーを検証するために使用する公開鍵。この_ノードのキーペア_は、サーバーを初めて起動すると自動的に生成されます。(削除された場合、サーバーは新たなキーペアを作成できます。)構成ファイルにて`[node_seed]`設定オプションを使用すると、永続値を設定できます。これは[クラスター化](clustering.html)に便利です。 | -| `pubkey_validator` | 文字列 | _(管理者のみ)_ このノードがレジャーの検証の署名に使用する公開鍵。この_検証キーペア_は、`[validator_token]`または`[validation_seed]`設定フィールドにて生成されます。 | -| `server_state` | 文字列 | サーバーのネットワークへの参加の度合いを示す文字列。詳細は、[考えられるサーバーの状態](rippled-server-states.html)を参照してください。 | -| `server_state_duration_us` | 数値 | サーバーが現在の状態になってから経過したマイクロ秒数。[新規: rippled 1.2.0][] | -| `state_accounting` | オブジェクト | 各種[サーバー状態](rippled-server-states.html)のマップと、サーバーが各状態に費やした時間についての情報。これは、サーバーのネットワーク接続について長期的な健全性を追跡するのに便利です。[新規: rippled 0.30.1][] | -| `state_accounting.*.duration_us` | 文字列 | サーバーがこの状態になってから費やしたマイクロ秒数。(サーバーが別の状態に移行するたびに更新されます。)[新規: rippled 0.30.1][] | -| `state_accounting.*.transitions` | 数値 | サーバーがこの状態に移行した回数。[新規: rippled 0.30.1][] | -| `uptime` | 数値 | サーバーが連続して稼働している秒数。[新規: rippled 0.30.1][] | -| `validated_ledger` | オブジェクト | (省略される場合があります)完全に検証された最新のレジャーについての情報。最新の検証済みレジャーが使用できない場合、このフィールドは応答にて省略され、代わりに`closed_ledger`が含まれます。 | -| `validated_ledger.age` | 数値 | レジャーの閉鎖以降の秒数。 | -| `validated_ledger.base_fee_xrp` | 数値 | XRP単位の基本手数料。0.00005の場合は、`1e-05`などの科学的記数法で表すことができます。 | -| `validated_ledger.hash` | 文字列 | 16進数で表された、レジャーの一意のハッシュ | -| `validated_ledger.reserve_base_xrp` | 符号なし整数 | すべてのアカウントで準備金として保有しておく必要があるXRPの最少額(drop数ではありません) | -| `validated_ledger.reserve_inc_xrp` | 符号なし整数 | アカウントがレジャー内に保有するオブジェクトごとのアカウント準備金に追加するXRP額(drop数ではありません) | -| `validated_ledger.seq` | 数値 - [レジャーインデックス][] | 最新の検証済みレジャーのレジャーインデックス | -| `validation_quorum` | 数値 | レジャーバージョンの検証に、最低限必要となる信頼できる検証の数。場合によっては、サーバーがさらに検証を要求する場合があります。 | -| `validator_list_expires` | 文字列 | _(管理者のみ)_ 現在のバリデータリストの有効期限が切れるタイミングを人間が読み取れる時間でを表示、または、サーバーが発行済みのバリデータリストをロードしていない場合は文字列`unknown`、サーバーが静的なバリデータリストを使用する場合は文字列`never`のいずれかを表示します。[新規: rippled 0.80.1][] | +| `Field` | 型 | 説明 | +|:------------------------------------|:-----------|:-----------| +| `amendment_blocked` | 真偽値 | _(省略される場合があります)_`true`の場合、このサーバは[Amendmentブロック](amendments.html#amendment-blocked)の状態です。サーバがAmendmentブロックの状態でない場合、このフィールドは応答から省略されます。 | +| `build_version` | 文字列 | 実行中の`rippled`のバージョン番号。 | +| `closed_ledger` | オブジェクト | (省略される場合があります)コンセンサスによってまだ検証されていない、最も最近更新を閉鎖したレジャーについての情報。最新の検証済みレジャーが使用可能な場合、このフィールドは応答で省略され、代わりに`validated_ledger`が含まれます。メンバーフィールドは`validated_ledger`フィールドと同じです。 | +| `complete_ledgers` | 文字列 | ローカル`rippled`がデータベース内に有するレジャーのバージョンのシーケンス番号の範囲を示す表現。例えば、`24900901-24900984,24901116-24901158`のように、互いに素なシーケンスの場合があります。サーバに完全なレジャーがない場合(例えば、ネットワークとの同期を始めたばかりの場合)、文字列`empty`になります。 | +| `hostid` | 文字列 | admin要求の場合、`rippled`インスタンスを実行するサーバのホスト名が返されます。それ以外の要求の場合、一意の4文字の単語が返されます。 | +| `io_latency_ms` | 数値 | I/O処理の待ち時間(ミリ秒単位)。この数値がそれほど低くない場合、`rippled`サーバは深刻な負荷の問題を抱えている可能性があります。 | +| `jq_trans_overflow` | 文字列-数値 | このサーバが一度に処理待ちのトランザクションが250回を超えた回数(起動以来)。この数値が大きい場合、サーバがXRP Ledgerネットワークのトランザクション負荷に対応できていない可能性があります。将来を見据えたサーバの詳細な推奨仕様については、[容量の計画](capacity-planning.html)をご覧ください。 | +| `last_close` | オブジェクト | サーバが最後にレジャーを閉鎖したときの情報。これには、コンセンサスの取得に要した時間や、参加した信頼できるバリデータ(検証者)の数が含まれます。 | +| `last_close.converge_time_s` | 数値 | 直近で検証されたレジャーバージョンでコンセンサスに達するまでにかかった時間(秒)。 | +| `last_close.proposers` | 数値 | 直近に検証されたレジャーバージョンのコンセンサスプロセスで、サーバが考慮した信頼できるバリデータの数(バリデータとして設定されている場合は自分自身を含む)。 | +| `load` | オブジェクト | _(管理者のみ)_ サーバの現在の負荷状態についての詳細な情報。 | +| `load.job_types` | 配列 | _(管理者のみ)_ サーバが実行している各種ジョブのレートや、各ジョブにかかる時間についての情報。 | +| `load.threads` | 数値 | _(管理者のみ)_ サーバの主要なジョブプール内のスレッドの数。 | +| `load_factor` | 数値 | サーバが現在実行中の、負荷スケーリングされたオープンレジャートランザクションコストを、基本トランザクションコストに適用される乗数として示したもの。例えば、負荷係数`1000`でリファレンストランザクションコストが10 dropである場合、負荷スケーリングされたトランザクションコストは10,000 drop(0.01 XRP)です。負荷係数は、[個々のサーバの負荷係数](transaction-cost.html#ローカル負荷コスト)の最高値、クラスターの負荷係数、[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)、ネットワーク全体の負荷係数によって決まります。 | +| `load_factor_local` | 数値 | (省略される場合があります)このサーバに対する負荷に基づく、[トランザクションコスト][]に適用される現在の乗数。 | +| `load_factor_net` | 数値 | (省略される場合があります)ネットワークのその他の部分で使用されている、[トランザクションコスト][]に適用される現在の乗数(他のサーバから報告された負荷値から推定します)。 | +| `load_factor_cluster` | 数値 | (省略される場合があります)[このクラスター](clustering.html)内のサーバに対する負荷に基づく、[トランザクションコスト][]に適用される現在の乗数。 | +| `load_factor_fee_escalation` | 数値 | (省略される場合があります)オープンレジャーに入るために取引が支払う必要がある[トランザクションコスト][]に適用される現在の乗数。 | +| `load_factor_fee_queue` | 数値 | (省略される場合があります)キューが一杯になっている場合に、キューに入るために取引が支払う必要がある[トランザクションコスト][]に適用される現在の乗数。 | +| `load_factor_server` | 数値 | (省略される場合があります)サーバが実施中の負荷係数。[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)は含まれません。 | +| `peers` | 数値 | このサーバが現在接続している、他の`rippled`サーバの数。 | +| `ports` | 配列 | サーバがAPIコマンドを待ち受けているポートの一覧。配列の各エントリは[ポート記述子オブジェクト](#ポート記述子オブジェクト) となります。 [新規: rippled 1.12.0][] | +| `pubkey_node` | 文字列 | ピアツーピア通信の中でこのサーバを検証するために使用する公開鍵。この _ノードのキーペア_ は、サーバを初めて起動すると自動的に生成されます。(削除された場合、サーバは新たなキーペアを作成できます。)構成ファイルにて`[node_seed]`設定オプションを使用すると、永続値を設定できます。これは[クラスター化](clustering.html)に便利です。 | +| `pubkey_validator` | 文字列 | _(管理者のみ)_ このノードがレジャーの検証の署名に使用する公開鍵。この _検証キーペア_ は、`[validator_token]`または`[validation_seed]`設定フィールドにて生成されます。 | +| `reporting` | オブジェクト | _([レポートモード](rippled-server-modes.html)サーバのみ)_ このサーバのレポートモード固有の設定に関する情報。 | +| `reporting.etl_sources` | 配列 | _([レポートモード](rippled-server-modes.html)サーバのみ)_ このレポートモードがデータを取得するP2Pモードサーバのリスト。この配列の各エントリは[ETLソースオブジェクト](#etlソースオブジェクト)です。 | +| `reporting.is_writer` | 真偽値 | _([レポートモード](rippled-server-modes.html)サーバのみ)_ `true`の場合、このサーバは外部データベースにレジャーデータを書き込んでいます。`false`の場合、他のレポートモードサーバが共有データベースにデータを書き込んでいるか、読み取り専用に設定されているため、現在は書き込んでいません。 | +| `reporting.last_publish_time` | 文字列 | _([レポートモード](rippled-server-modes.html)サーバのみ)_このサーバが最後に有効なレジャーを[サブスクリプションストリーム](subscribe.html)に公開した日時を示すISO 8601タイムスタンプ。 | +| `server_state` | 文字列 | サーバのネットワークへの参加の度合いを示す文字列。詳細は、[考えられるサーバの状態](rippled-server-states.html)を参照してください。 | +| `server_state_duration_us` | 数値 | サーバが現在の状態になってから経過したマイクロ秒数。 | +| `state_accounting` | オブジェクト | 各種[サーバ状態](rippled-server-states.html)のマップと、サーバが各状態に費やした時間についての情報。これは、サーバのネットワーク接続について長期的な健全性を追跡するのに便利です。 | +| `state_accounting.*.duration_us` | 文字列 | サーバがこの状態になってから費やしたマイクロ秒数。(サーバが別の状態に移行するたびに更新されます。) | +| `state_accounting.*.transitions` | 文字列 | サーバがこの状態に移行した回数。 | +| `time` | 文字列 | サーバの時計によるUTCでの現在時刻。 | +| `uptime` | 数値 | サーバが連続して稼働している秒数。 | +| `validated_ledger` | オブジェクト | (省略される場合があります)完全に検証された最新のレジャーについての情報。最新の検証済みレジャーが使用できない場合、このフィールドは応答にて省略され、代わりに`closed_ledger`が含まれます。 | +| `validated_ledger.age` | 数値 | レジャーの閉鎖以降の秒数。 | +| `validated_ledger.base_fee_xrp` | 数値 | XRP単位の基本手数料。0.00005の場合は、`1e-05`などの科学的記数法で表すことができます。 | +| `validated_ledger.hash` | 文字列 | 16進数で表された、レジャーの一意のハッシュ | +| `validated_ledger.reserve_base_xrp` | 符号なし整数 | すべてのアカウントで準備金として保有しておく必要があるXRPの最少額(drop数ではありません) | +| `validated_ledger.reserve_inc_xrp` | 符号なし整数 | アカウントがレジャー内に保有するオブジェクトごとのアカウント準備金に追加するXRP額(drop数ではありません) | +| `validated_ledger.seq` | 数値 | 最新の検証済みレジャーのレジャーインデックス | +| `validation_quorum` | 数値 | レジャーバージョンの検証に、最低限必要となる信頼できる検証の数。場合によっては、サーバがさらに検証を要求する場合があります。 | +| `validator_list_expires` | 文字列 | _(管理者のみ)_ 現在のバリデータリストの有効期限が切れるタイミングを人間が読み取れる時間でを表示、または、サーバが発行済みのバリデータリストをロードしていない場合は文字列`unknown`、サーバが静的なバリデータリストを使用する場合は文字列`never`のいずれかを表示します。 | -**注記:** `closed_ledger`フィールドがあり、`seq`の値が小さい(8桁未満)場合、`rippled`には現在、ピアツーピアネットワークから取得した検証済みレジャーのコピーがないことを表しています。これは、サーバーが現在も同期中である可能性を示しています。接続速度とハードウェア仕様にもよりますが、通常はネットワークとの同期に約5分かかります。 +**注記:** `closed_ledger`フィールドがあり、`seq`の値が小さい(8桁未満)場合、`rippled`には現在、ピアツーピアネットワークから取得した検証済みレジャーのコピーがないことを表しています。これは、サーバが現在も同期中である可能性を示しています。接続速度とハードウェア仕様にもよりますが、通常はネットワークとの同期に約5分かかります。 -[トランザクションコスト]: transaction-cost.html +{% include '_snippets/etl-source-object.ja.md' %} + +{% include '_snippets/port-descriptor-object.ja.md' %} ## 考えられるエラー diff --git a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_state.md b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_state.md index be72ea95e6..ff9c692f8f 100644 --- a/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_state.md +++ b/content/@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_state.md @@ -1,11 +1,12 @@ --- html: server_state.html parent: server-info-methods.html -blurb: rippledサーバーの現在の状態に関するさまざまな機械可読の情報を問い合わせます。 +blurb: サーバの現在の状態に関するさまざまなマシンが読み取り可能な情報を問い合わせます。 labels: - コアサーバー --- # server_state + [[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/rpc/handlers/ServerState.cpp "Source") `server_state`コマンドは、サーバーに対し`rippled`サーバーの現在の状態に関するさまざまな機械可読の情報を問い合わせます。応答は[server_infoメソッド][]の場合とほぼ同じですが、読み取りやすい単位ではなく処理しやすい単位を使用します。(たとえば、XRP値は科学的記数法や10進数値の代わりに整数のdrop数で示され、時刻は秒単位ではなくミリ秒単位で示されます。) @@ -58,97 +59,66 @@ rippled server_state ```json { - "id": 2, - "status": "success", - "type": "response", - "result": { - "state": { - "build_version": "0.30.1-rc3", - "complete_ledgers": "18611104-18615049", - "io_latency_ms": 1, - "last_close": { - "converge_time": 3003, - "proposers": 5 - }, - "load": { - "job_types": [ - { - "job_type": "untrustedProposal", - "peak_time": 1, - "per_second": 3 - }, - { - "in_progress": 1, - "job_type": "clientCommand" - }, - { - "avg_time": 12, - "job_type": "writeObjects", - "peak_time": 345, - "per_second": 2 - }, - { - "job_type": "trustedProposal", - "per_second": 1 - }, - { - "job_type": "peerCommand", - "per_second": 64 - }, - { - "avg_time": 33, - "job_type": "diskAccess", - "peak_time": 526 - }, - { - "job_type": "WriteNode", - "per_second": 55 - } - ], - "threads": 6 - }, - "load_base": 256, - "load_factor": 256000, - "peers": 10, - "pubkey_node": "n94UE1ukbq6pfZY9j54sv2A1UrEeHZXLbns3xK5CzU9NbNREytaa", - "pubkey_validator": "n9KM73uq5BM3Fc6cxG3k5TruvbLc8Ffq17JZBmWC4uP4csL4rFST", - "server_state": "proposing", - "server_state_duration_us": 92762334, - "state_accounting": { - "connected": { - "duration_us": "150510079", - "transitions": 1 - }, - "disconnected": { - "duration_us": "1827731", - "transitions": 1 - }, - "full": { - "duration_us": "168295542987", - "transitions": 1865 - }, - "syncing": { - "duration_us": "6294237352", - "transitions": 1866 - }, - "tracking": { - "duration_us": "13035524", - "transitions": 1866 - } - }, - "uptime": 174748, - "validated_ledger": { - "base_fee": 10, - "close_time": 507693650, - "hash": "FEB17B15FB64E3AF8D371E6AAFCFD8B92775BB80AB953803BD73EA8EC75ECA34", - "reserve_base": 20000000, - "reserve_inc": 5000000, - "seq": 18615049 - }, - "validation_quorum": 4, - "validator_list_expires": 561139596 - } - } + "id": 1, + "result": { + "state": { + "build_version": "1.7.2", + "complete_ledgers": "64572720-65887201", + "io_latency_ms": 1, + "jq_trans_overflow": "0", + "last_close": { + "converge_time": 3005, + "proposers": 41 + }, + "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": "365006", + "peer_disconnects_resources": "336", + "peers": 216, + "pubkey_node": "n9MozjnGB3tpULewtTsVtuudg5JqYFyV3QFdAtVLzJaxHcBaxuXD", + "server_state": "full", + "server_state_duration_us": "3588969453592", + "state_accounting": { + "connected": { + "duration_us": "301410595", + "transitions": "2" + }, + "disconnected": { + "duration_us": "1207534", + "transitions": "2" + }, + "full": { + "duration_us": "3589171798767", + "transitions": "2" + }, + "syncing": { + "duration_us": "6182323", + "transitions": "2" + }, + "tracking": { + "duration_us": "43", + "transitions": "2" + } + }, + "time": "2021-Aug-24 20:44:43.466048 UTC", + "uptime": 3589480, + "validated_ledger": { + "base_fee": 10, + "close_time": 683153081, + "hash": "B52AC3876412A152FE9C0442801E685D148D05448D0238587DBA256330A98FD3", + "reserve_base": 20000000, + "reserve_inc": 5000000, + "seq": 65887201 + }, + "validation_quorum": 33 + } + }, + "status": "success", + "type": "response" } ``` @@ -157,99 +127,138 @@ rippled server_state ```json 200 OK +Headers + { - "result" : { - "state" : { - "build_version" : "0.30.1-rc3", - "complete_ledgers" : "18611104-18615037", - "io_latency_ms" : 1, - "last_close" : { - "converge_time" : 2001, - "proposers" : 5 + "result": { + "state": { + "build_version": "1.7.2", + "complete_ledgers": "65844785-65887184", + "io_latency_ms": 3, + "jq_trans_overflow": "580", + "last_close": { + "converge_time": 3012, + "proposers": 41 + }, + "load_base": 256, + "load_factor": 134022, + "load_factor_fee_escalation": 134022, + "load_factor_fee_queue": 256, + "load_factor_fee_reference": 256, + "load_factor_server": 256, + "peer_disconnects": "792367", + "peer_disconnects_resources": "7273", + "peers": 72, + "pubkey_node": "n9LNvsFiYfFf8va6pma2PHGJKVLSyZweN1iBAkJQSeHw4GjM8gvN", + "server_state": "full", + "server_state_duration_us": "422128665555", + "state_accounting": { + "connected": { + "duration_us": "172799714", + "transitions": "1" }, - "load" : { - "job_types" : [ - { - "job_type" : "untrustedProposal", - "per_second" : 2 - }, - { - "in_progress" : 1, - "job_type" : "clientCommand" - }, - { - "job_type" : "writeObjects", - "per_second" : 2 - }, - { - "avg_time" : 2, - "job_type" : "acceptLedger", - "peak_time" : 6 - }, - { - "job_type" : "trustedProposal", - "per_second" : 1 - }, - { - "job_type" : "peerCommand", - "per_second" : 80 - }, - { - "job_type" : "diskAccess", - "per_second" : 1 - }, - { - "job_type" : "WriteNode", - "per_second" : 91 - } - ], - "threads" : 6 + "disconnected": { + "duration_us": "309059", + "transitions": "1" }, - "load_base" : 256, - "load_factor" : 256000, - "peers" : 10, - "pubkey_node" : "n94UE1ukbq6pfZY9j54sv2A1UrEeHZXLbns3xK5CzU9NbNREytaa", - "pubkey_validator" : "n9KM73uq5BM3Fc6cxG3k5TruvbLc8Ffq17JZBmWC4uP4csL4rFST", - "server_state" : "proposing", - "server_state_duration_us": 708078257, - "state_accounting" : { - "connected" : { - "duration_us" : "150510079", - "transitions" : 1 - }, - "disconnected" : { - "duration_us" : "1827731", - "transitions" : 1 - }, - "full" : { - "duration_us" : "168241260112", - "transitions" : 1865 - }, - "syncing" : { - "duration_us" : "6294237352", - "transitions" : 1866 - }, - "tracking" : { - "duration_us" : "13035524", - "transitions" : 1866 - } + "full": { + "duration_us": "6020429212246", + "transitions": "143" }, - "uptime" : 174693, - "validated_ledger" : { - "base_fee" : 10, - "close_time" : 507693592, - "hash" : "1C26209AE593C7EB5123363B3152D86514845FBD42CC6B05111D57F62D02B113", - "reserve_base" : 20000000, - "reserve_inc" : 5000000, - "seq" : 18615037 + "syncing": { + "duration_us": "413813232", + "transitions": "152" }, - "validation_quorum" : 4, - "validator_list_expires" : 561139596 - }, - "status" : "success" + "tracking": { + "duration_us": "266553605", + "transitions": "152" + } + }, + "time": "2021-Aug-24 20:43:43.043406 UTC", + "uptime": 6021282, + "validated_ledger": { + "base_fee": 10, + "close_time": 683153020, + "hash": "ABEF3D24015E8B6B7184B4ABCEDC0E0E3AA4F0677FAB91C40B1E500707C1F3E5", + "reserve_base": 20000000, + "reserve_inc": 5000000, + "seq": 65887184 + }, + "validation_quorum": 33 + }, + "status": "success" } } +``` +*コマンドライン* + +```json +Loading: "/etc/opt/ripple/rippled.cfg" +2020-Mar-24 01:30:08.646201720 UTC HTTPClient:NFO Connecting to 127.0.0.1:5005 + +Headers + +{ + "result": { + "state": { + "build_version": "1.7.2", + "complete_ledgers": "65844785-65887184", + "io_latency_ms": 3, + "jq_trans_overflow": "580", + "last_close": { + "converge_time": 3012, + "proposers": 41 + }, + "load_base": 256, + "load_factor": 134022, + "load_factor_fee_escalation": 134022, + "load_factor_fee_queue": 256, + "load_factor_fee_reference": 256, + "load_factor_server": 256, + "peer_disconnects": "792367", + "peer_disconnects_resources": "7273", + "peers": 72, + "pubkey_node": "n9LNvsFiYfFf8va6pma2PHGJKVLSyZweN1iBAkJQSeHw4GjM8gvN", + "server_state": "full", + "server_state_duration_us": "422128665555", + "state_accounting": { + "connected": { + "duration_us": "172799714", + "transitions": "1" + }, + "disconnected": { + "duration_us": "309059", + "transitions": "1" + }, + "full": { + "duration_us": "6020429212246", + "transitions": "143" + }, + "syncing": { + "duration_us": "413813232", + "transitions": "152" + }, + "tracking": { + "duration_us": "266553605", + "transitions": "152" + } + }, + "time": "2021-Aug-24 20:43:43.043406 UTC", + "uptime": 6021282, + "validated_ledger": { + "base_fee": 10, + "close_time": 683153020, + "hash": "ABEF3D24015E8B6B7184B4ABCEDC0E0E3AA4F0677FAB91C40B1E500707C1F3E5", + "reserve_base": 20000000, + "reserve_inc": 5000000, + "seq": 65887184 + }, + "validation_quorum": 33 + }, + "status": "success" + } +} ``` @@ -258,49 +267,59 @@ rippled server_state `state`オブジェクトには、以下のフィールドが含まれています。 -| `Field` | 型 | 説明 | -|:---------------------------------|:-----------------|:-----------------------| -| `amendment_blocked` | ブール値 | _(省略される場合があります)_`true`の場合、このサーバーは[Amendment blocked](amendments.html#amendment-blocked)の状態です。サーバーがAmendment blockedではない場合、応答ではこのフィールドが省略されます。[新規: rippled 0.80.0][] | -| `build_version` | 文字列 | 実行中の`rippled`バージョンのバージョン番号。 | -| `complete_ledgers` | 文字列 | ローカルの`rippled`がデータベース内に有するレジャーバージョンのシーケンス番号の範囲を示す表現。例えば、「2500-5000,32570-7695432」のように互いに素なシーケンスの場合があります。サーバーに完全なレジャーがない場合(例えば、ネットワークとの同期を始めたばかりの場合)、文字列`empty`になります。 | -| `closed_ledger` | オブジェクト | (省略される場合があります)コンセンサスによって検証されていない、最新の閉鎖済みレジャーに関する情報。最新の検証済みレジャーが使用可能な場合、応答ではこのフィールドは省略され、代わりに`validated_ledger`が含まれます。メンバーフィールドは`validated_ledger`フィールドと同じです。 | -| `io_latency_ms` | 数値 | I/O処理の待機に費やされた時間数(ミリ秒単位)。この数値が極端に低くない場合、`rippled`サーバーでは深刻な負荷の問題が発生している可能性があります。 | -| `load` | オブジェクト | _(管理者専用)_ サーバーの現在の負荷状態についての詳細な情報。 | -| `load.job_types` | 配列 | _(管理者専用)_ サーバーが実行している各種ジョブのレートや、各ジョブに要する時間についての情報。 | -| `load.threads` | 数値 | _(管理者専用)_ サーバーの主要なジョブプール内のスレッド数。 | -| `load_base` | 整数 | [トランザクションコスト](transaction-cost.html)の計算で使用されるサーバー負荷のベースライン量です。`load_factor`が`load_base`と同等の場合、基本トランザクションコストのみが適用されます。`load_factor`が`load_base`よりも大きい場合、トランザクションコストにそれらの値の比率が乗算されます。たとえば`load_factor`が`load_base`の2倍である場合、トランザクションコストは2倍になります。 | -| `load_factor` | 数値 | サーバーが現在適用している負荷係数。トランザクションコストの乗数は、この値と`load_base`の比率によって決まります。負荷係数は、個別サーバーの最も高い負荷係数、クラスターの負荷係数、[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)、およびネットワーク全体の負荷係数によって決定します。[更新: rippled 0.33.0][新規: rippled 0.33.0] | -| `load_factor_fee_escalation` | 整数 | (省略される場合があります)オープンレジャーに入るときに[トランザクションコスト][]に適用される現在の乗数([手数料レベル][])。[新規: rippled 0.32.0][] | -| `load_factor_fee_queue` | 整数 | (省略される場合があります)キューが一杯になっている場合に、キューへ入るときに[トランザクションコスト][]に適用される現在の乗数([手数料レベル][])。[新規: rippled 0.32.0][] | -| `load_factor_fee_reference` | 整数 | (省略される場合があります)負荷スケーリングのない[トランザクションコスト][]([手数料レベル][])。[新規: rippled 0.32.0][] | -| `load_factor_server` | 数値 | (省略される場合があります)サーバーが適用している負荷係数。[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)は含まれません。[新規: rippled 0.33.0][] | -| `peers` | 数値 | このサーバーが現在接続している他の`rippled`サーバーの数。 | -| `pubkey_node` | 文字列 | ピアツーピア通信のためにこのサーバーを検証する際に使用される公開鍵。サーバーを初めて起動すると、サーバーにより _ノードキーペア_ が自動的に生成されます。(キーペアが削除されている場合、サーバーは新しいキーペアを作成できます。)`[node_seed]`構成オプションを使用して構成ファイルの永続値を設定できます。これは[クラスター化](clustering.html)で便利です。 | -| `pubkey_validator` | 文字列 | _(管理者専用)_ このノードがレジャー検証の署名に使用する公開鍵。_検証キーペア_ は、`[validator_token]`構成フィールドまたは`[validation_seed]`構成フィールドから生成されます。 | -| `server_state` | 文字列 | サーバーのネットワークへの参加度を示す文字列。詳細は、[考えられるサーバーの状態](rippled-server-states.html)を参照してください。 | -| `server_state_duration_us` | 数値 | サーバーが現在の状態になってから経過した連続マイクロ秒数。[新規: rippled 1.2.0][] | -| `state_accounting` | オブジェクト | 各種[サーバー状態](rippled-server-states.html)のマップと、サーバーが各状態に費やした時間についての情報。これは、サーバーのネットワーク接続性の健全性を長期的に追跡するのに便利です。[新規: rippled 0.30.1][] | -| `state_accounting.*.duration_us` | 文字列 | サーバーがこの状態になってから経過したマイクロ秒数。(サーバーが別の状態に移行するたびに更新されます。)[新規: rippled 0.30.1][] | -| `state_accounting.*.transitions` | 数値 | サーバーがこの状態に移行した回数。[新規: rippled 0.30.1][] | -| `uptime` | 数値 | サーバーが連続稼働している秒数。[新規: rippled 0.30.1][] | -| `validated_ledger` | オブジェクト | (省略される場合があります)完全に検証された最新のレジャーについての情報。最新の検証済みレジャーが使用できない場合、このフィールドは応答で省略され、代わりに`closed_ledger`が含まれます。 | +| `Field` | 型 | 説明 | +|:---------------------------------|:-----------|:-----------------------| +| `amendment_blocked` | 真偽値 | _(省略される場合があります)_`true`の場合、このサーバは[Amendmentブロック](amendments.html#amendment-blocked)の状態です。サーバーがAmendmentブロックではない場合、応答ではこのフィールドが省略されます。 | +| `build_version` | 文字列 | 実行中の`rippled`バージョンのバージョン番号。 | +| `complete_ledgers` | 文字列 | ローカルの`rippled`がデータベース内に有するレジャーバージョンのシーケンス番号の範囲を示す表現。例えば、「2500-5000,32570-7695432」のように互いに素なシーケンスの場合があります。サーバーに完全なレジャーがない場合(例えば、ネットワークとの同期を始めたばかりの場合)、文字列`empty`になります。 | +| `closed_ledger` | オブジェクト | (省略される場合があります)コンセンサスによって検証されていない、最新の閉鎖済みレジャーに関する情報。最新の検証済みレジャーが使用可能な場合、応答ではこのフィールドは省略され、代わりに`validated_ledger`が含まれます。メンバーフィールドは`validated_ledger`フィールドと同じです。 | +| `io_latency_ms` | 数値 | I/O処理の待機に費やされた時間数(ミリ秒単位)。この数値が極端に低くない場合、`rippled`サーバーでは深刻な負荷の問題が発生している可能性があります。 | +| `jq_trans_overflow` | 文字列-数値 | Tこのサーバが一度に処理待ちのトランザクションが250回を超えた回数(起動以来)。この数値が大きい場合、サーバがXRP Ledgerネットワークのトランザクション負荷に対応できていない可能性があります。将来を見据えたサーバの詳細な推奨仕様については、[容量の計画](capacity-planning.html)をご覧ください | +| `last_close` | オブジェクト | サーバが最後にレジャーを閉鎖したときの情報。これには、コンセンサスの取得に要した時間や、参加した信頼できるバリデータ(検証者)の数が含まれます。 | +| `last_close.converge_time` | 数値 | 直近で検証されたレジャーバージョンでコンセンサスに達するまでにかかった時間(ミリ秒)。 | +| `last_close.proposers` | 数値 | 直近に検証されたレジャーバージョンのコンセンサスプロセスで、サーバが考慮した信頼できるバリデータの数(バリデータとして設定されている場合は自分自身を含む)。 | +| `load` | オブジェクト | _(管理者専用)_ サーバの現在の負荷状態についての詳細な情報。 | +| `load.job_types` | 配列 | _(管理者専用)_ サーバが実行している各種ジョブのレートや、各ジョブに要する時間についての情報。 | +| `load.threads` | 数値 | _(管理者専用)_ サーバの主要なジョブプール内のスレッド数。 | +| `load_base` | 整数 | [トランザクションコスト](transaction-cost.html)の計算で使用されるサーバー負荷のベースライン量です。`load_factor`が`load_base`と同等の場合、基本トランザクションコストのみが適用されます。`load_factor`が`load_base`よりも大きい場合、トランザクションコストにそれらの値の比率が乗算されます。たとえば`load_factor`が`load_base`の2倍である場合、トランザクションコストは2倍になります。 | +| `load_factor` | 数値 | サーバーが現在適用している負荷係数。トランザクションコストの乗数は、この値と`load_base`の比率によって決まります。負荷係数は、個別サーバーの最も高い負荷係数、クラスターの負荷係数、[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)、およびネットワーク全体の負荷係数によって決定します。 | +| `load_factor_fee_escalation` | 整数 | (省略される場合があります)オープンレジャーに入るときに[トランザクションコスト][]に適用される現在の乗数([手数料レベル][])。 | +| `load_factor_fee_queue` | 整数 | (省略される場合があります)キューが一杯になっている場合に、キューへ入るときに[トランザクションコスト][]に適用される現在の乗数([手数料レベル][])。 | +| `load_factor_fee_reference` | 整数 | (省略される場合があります)負荷スケーリングのない[トランザクションコスト][]([手数料レベル][])。 | +| `load_factor_server` | 数値 | (省略される場合があります)サーバーが適用している負荷係数。[オープンレジャーコスト](transaction-cost.html#オープンレジャーコスト)は含まれません。 | +| `peers` | 数値 | このサーバーが現在接続している他の`rippled`サーバーの数。 | +| `ports` | 配列 | サーバがAPIコマンドを待ち受けているポートの一覧。配列の各エントリは[ポート記述子オブジェクト](#ポート記述子オブジェクト) となります。 [新規: rippled 1.12.0][] | +| `pubkey_node` | 文字列 | ピアツーピア通信のためにこのサーバーを検証する際に使用される公開鍵。サーバーを初めて起動すると、サーバーにより _ノードキーペア_ が自動的に生成されます。(キーペアが削除されている場合、サーバーは新しいキーペアを作成できます。)`[node_seed]`構成オプションを使用して構成ファイルの永続値を設定できます。これは[クラスター化](clustering.html)で便利です。 | +| `pubkey_validator` | 文字列 | _(管理者専用)_ このノードがレジャー検証の署名に使用する公開鍵。_検証キーペア_ は、`[validator_token]`構成フィールドまたは`[validation_seed]`構成フィールドから生成されます。 | +| `reporting` | オブジェクト | _([レポートモード](rippled-server-modes.html)サーバのみ)_ このサーバのレポートモード固有の設定に関する情報。 | +| `reporting.etl_sources` | 配列 | _([レポートモード](rippled-server-modes.html)サーバのみ)_ このレポートモードがデータを取得する P2P モードサーバのリスト。この配列の各エントリは[ETLソースオブジェクト](#etlソースオブジェクト)です。 | +| `reporting.is_writer` | 真偽値 | _([レポートモード](rippled-server-modes.html)サーバのみ)_ `true`の場合、このサーバは外部データベースにレジャーデータを書き込んでいます。`false`の場合、他のレポートモードサーバが共有データベースにデータを書き込んでいるか、読み取り専用に設定されているため、現在は書き込んでいません。 | +| `reporting.last_publish_time` | 文字列 | _([レポートモード](rippled-server-modes.html)サーバのみ)_このサーバが最後に有効なレジャーを[サブスクリプションストリーム](subscribe.html)に公開した日時を示すISO 8601タイムスタンプ。 | +| `server_state` | 文字列 | サーバーのネットワークへの参加度を示す文字列。詳細は、[考えられるサーバーの状態](rippled-server-states.html)をご覧ください。 | +| `server_state_duration_us` | 数値 | サーバが現在の状態になってから経過した連続マイクロ秒数。[新規: rippled 1.2.0][] | +| `state_accounting` | オブジェクト | 各種[サーバ状態](rippled-server-states.html)のマップと、サーバーが各状態に費やした時間についての情報。これは、サーバーのネットワーク接続性の健全性を長期的に追跡するのに便利です。 | +| `state_accounting.*.duration_us` | 文字列 | サーバがこの状態になってから経過したマイクロ秒数。(サーバーが別の状態に移行するたびに更新されます。) | +| `state_accounting.*.transitions` | 数値 | サーバがこの状態に移行した回数。 | +| `time` | 文字列 | サーバの時計によるUTCでの現在時刻。 | +| `uptime` | 数値 | サーバが連続稼働している秒数。 | +| `validated_ledger` | オブジェクト | (省略される場合があります)完全に検証された最新のレジャーについての情報。最新の検証済みレジャーが使用できない場合、このフィールドは応答で省略され、代わりに`closed_ledger`が含まれます。 | | `validated_ledger.base_fee` | 符号なし整数 | ネットワークへのトランザクション伝達にかかる基本手数料(XRPのdrop数)。 | -| `validated_ledger.close_time` | 数値 | レジャーが閉鎖された時刻([Rippleエポック以降の経過秒数][]) | -| `validated_ledger.hash` | 文字列 | 当該レジャーバージョンの一意のハッシュ(16進数) | +| `validated_ledger.close_time` | 数値 | レジャーが閉鎖された時刻([Rippleエポック以降の経過秒数][]) | +| `validated_ledger.hash` | 文字列 | 当該レジャーバージョンの一意のハッシュ(16進数) | | `validated_ledger.reserve_base` | 符号なし整数 | すべてのアカウントで準備金として保有する必要がある最小額(XRPのdrop数) | | `validated_ledger.reserve_inc` | 符号なし整数 | アカウントがレジャー内に保有する各アイテムのアカウント準備金に追加する額(XRPのdrop数)。 | | `validated_ledger.seq` | 符号なし整数 | このレジャーの一意のシーケンス番号 | -| `validation_quorum` | 数値 | 1つのレジャーバージョンの検証に最低限必要となる信頼できる検証の数。状況によっては、サーバーがさらに検証を要求する場合があります。 | -| `validator_list_expires` | 数値 | _(管理者専用)_ 現在のバリデータリストが期限切れになる時点([Rippleエポック以降の経過秒数][])。サーバーが発行済みのバリデータリストをロードしていない場合は0。[新規: rippled 0.80.1][] | +| `validation_quorum` | 数値 | 1つのレジャーバージョンの検証に最低限必要となる信頼できる検証の数。状況によっては、サーバーがさらに検証を要求する場合があります。 | +| `validator_list_expires` | 数値 | _(管理者専用)_ 現在のバリデータリストが期限切れになる時点([Rippleエポック以降の経過秒数][])。サーバーが発行済みのバリデータリストをロードしていない場合は0。 | +{% include '_snippets/etl-source-object.ja.md' %} + +{% include '_snippets/port-descriptor-object.ja.md' %} ## 考えられるエラー * [汎用エラータイプ][]のすべて。 - -[手数料レベル]: transaction-cost.html#手数料レベル -[トランザクションコスト]: transaction-cost.html {% include '_snippets/rippled_versions.md' %} {% include '_snippets/rippled-api-links.md' %} {% include '_snippets/tx-type-links.md' %} diff --git a/content/@i18n/ja/references/protocol/ledger-data/common-fields.md b/content/@i18n/ja/references/protocol/ledger-data/common-fields.md new file mode 100644 index 0000000000..d298e7e600 --- /dev/null +++ b/content/@i18n/ja/references/protocol/ledger-data/common-fields.md @@ -0,0 +1,39 @@ +--- +html: ledger-entry-common-fields.html +blurb: これらの共通フィールドは、すべてのレジャーエントリの一部です。 +--- +# Ledger Entryの共通フィールド +[[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/protocol/impl/LedgerFormats.cpp) + +[レジャー](ledgers.html)の状態データの各エントリは、同じ共通フィールドのセットと、[レジャーエントリのタイプ](ledger-entry-types.html)に基づく追加フィールドを持ちます。フィールド名は大文字と小文字を区別します。すべてのレジャーエントリの共通フィールドは以下の通りです。 + +| `Field` | JSONの型 | [内部の型][] | 必須? | 説明 | +|:-------------------------|:--------|:------------|:------|:------------| +| `index` or `LedgerIndex` | 文字列 | Hash256 | いいえ | このレジャーエントリの一意のID。JSONでは、このフィールドはコンテキストやAPIメソッドによって異なる名前で表現されます。(コード上では"任意(optional)"と指定されていますが、XRP Ledgerの歴史のごく初期からのレガシーデータでない限り、すべてのレジャーエントリは一意であるべきです)。 | +| `LedgerEntryType` | 文字列 | UInt16 | はい | レジャーエントリのタイプ。有効な[レジャーエントリのタイプ](ledger-entry-types.html)には`AccountRoot`、`Offer`、`RippleState`などがあります。 | +| `Flags` | 数値 | UInt32 | はい | このレジャーエントリのビットフラグのセット。 | + +**注意:** JSONでは、レジャーエントリIDは`index`または`LedgerIndex`フィールドになります。これは`ledger_index`フィールドの[レジャーインデックス][]とは異なります。 + + +## Ledger Entry ID + +[[ソース]](https://github.com/XRPLF/rippled/blob/master/src/ripple/protocol/impl/Indexes.cpp) + +各レジャーエントリには一意のIDがあります。IDは、エントリの重要な内容と[名前空間識別子](https://github.com/XRPLF/rippled/blob/master/src/ripple/protocol/LedgerFormats.h)をハッシュすることで得られます。[レジャーエントリのタイプ](ledger-entry-types.html)は、使用する名前空間識別子と、ハッシュに含めるコンテンツを決定します。これにより、すべてのIDが一意になります。ハッシュ関数は[SHA-512Half][]です。 + +一般的に、レジャーエントリのIDはJSONの`index`フィールドとして、オブジェクトの内容と同じレベルで返されます。[トランザクションのメタデータ](transaction-metadata.html)では、JSONにおけるレジャーオブジェクトのIDは`LedgerIndex`です。 + +オファーディレクトリには特別なIDがあり、ハッシュの一部がそのディレクトリ内のオファーの取引レートに置き換えられます。 + +{{ include_svg("img/ledger-object-ids.ja.svg", "図: 異なるタイプのレジャーエントリのID計算。スペースキーは、異なるタイプのIDが衝突するのを防ぎます。") }} + + +## フラグ + +フラグはオン/オフ設定で、ビットOR演算を使用して1つの数値に結合されるバイナリ値として表されます。レジャーエントリのフラグのビット値は、トランザクションでそれらのフラグを有効または無効にするために使用される値とは異なります。レジャーの状態フラグには、**lsf`**で始まる名前があります。 + +フラグフィールドに指定できる値は、レジャーエントリのタイプによって異なります。一部のレジャーエントリのタイプでは、フラグが定義されていません。このような場合、`Flags`フィールドは常に値`0`になります。 + + +{% include '_snippets/rippled-api-links.md' %} diff --git a/content/@i18n/ja/references/protocol/ledger-data/ledger-entry-types/index.md b/content/@i18n/ja/references/protocol/ledger-data/ledger-entry-types/index.md index f927273b17..a38da5c12b 100644 --- a/content/@i18n/ja/references/protocol/ledger-data/ledger-entry-types/index.md +++ b/content/@i18n/ja/references/protocol/ledger-data/ledger-entry-types/index.md @@ -5,6 +5,6 @@ template: pagetype-category.html.jinja labels: - データ保持 --- -# レジャーオブジェクトのタイプ +# レジャーエントリのタイプ {% include '_snippets/ledger-objects-intro.ja.md' %} diff --git a/content/@i18n/ja/references/protocol/transactions/common-fields.md b/content/@i18n/ja/references/protocol/transactions/common-fields.md index 33ee3ddf05..c3a3eb55ce 100644 --- a/content/@i18n/ja/references/protocol/transactions/common-fields.md +++ b/content/@i18n/ja/references/protocol/transactions/common-fields.md @@ -128,27 +128,25 @@ MemoTypeフィールドとMemoFormatフィールドには、以下の文字の ## NetworkIDフィールド [新規: rippled 1.11.0][] - +`NetworkID`フィールドは「クロスチェーン」トランザクションのリプレイ攻撃に対する保護であり、同じトランザクションがコピーされ、意図していない[ネットワーク](parallel-networks.html)で実行されることを防ぎます。既存のチェーンとの互換性のため、ネットワークIDが1024以下のネットワークでは`NetworkID`フィールドを省略する必要がありますが、ネットワークIDが1025以上のネットワークでは`NetworkID`フィールドを含める必要があります。以下の表は、さまざまな既知のネットワークのステータスと値を示しています。 -The `NetworkID` field is a protection against "cross-chain" transaction replay attacks, preventing the same transaction from being copied over and executing on a [parallel network](parallel-networks.html) that it wasn't intended for. For compatibility with existing chains, the `NetworkID` field must be omitted on any network with a Network ID of 1024 or less, but must be included on any network with a Network ID of 1025 or greater. The following table shows the status and values for various known networks: +| ネットワーク | ID | `NetworkID`フィールド | +|---------------|----|---------------------| +| Mainnet | 0 | 使用不可 | +| Testnet | 1 | 使用不可 | +| Devnet | 2 | 使用不可 | +| AMM Devnet | 25 | 使用不可 | +| Sidechains Devnet Locking Chain | 2551 | 使用不可, ただし、アップデート後に必要となる予定です。 | +| Sidechains Devnet Issuing Chain | 2552 | 使用不可, ただし、アップデート後に必要となる予定です。 | +| Hooks V3 Testnet | 21338 | 必須 | -| Network | ID | `NetworkID` Field | -|---------------|----|-------------------| -| Mainnet | 0 | Disallowed | -| Testnet | 1 | Disallowed | -| Devnet | 2 | Disallowed | -| AMM Devnet | 25 | Disallowed | -| Sidechains Devnet Locking Chain | 2551 | Disallowed, but will become required after an update | -| Sidechains Devnet Issuing Chain | 2552 | Disallowed, but will become required after an update | -| Hooks V3 Testnet | 21338 | Required | +トランザクションのリプレイ攻撃は理論的には可能ですが、2つ目のネットワークに特定の条件が必要です。次のすべてが真でなければなりません。 -Transaction replay attacks are theoretically possible, but require specific conditions on the second network. All of the following must be true: - -- The transaction's sender is a funded account on the second network. -- The sender's `Sequence` number on the second network matches the transaction's `Sequence`, or the transaction uses a [Ticket](tickets.html) that's available on the second network. -- Either the transaction does not have a `LastLedgerSequence` field, or it specifies a value that is higher than the current ledger index on the second ledger. - - Mainnet generally has a higher ledger index than test networks or sidechains, so it is easier to replay Mainnet transactions on a sidechain or test network than the other way around, when transactions use `LastLedgerSequence` as intended. -- Either the networks both have IDs of 1024 or less, both networks use the same ID, or the second network does not require the `NetworkID` field. +- トランザクションの送信者が2つ目のネットワーク上の資金提供アカウントである。 +- 2つ目のネットワーク上の送信者の`Sequence`がトランザクションの`Sequence`と一致するか、トランザクションが第二のネットワークで利用可能な[Ticket](tickets.html)を使用している。 +- トランザクションが`LastLedgerSequence`フィールドを持っていないか、2つ目レジャーの現在のレジャーインデックスよりも高い値を指定している。 + - メインネットは一般的に、テストネットワークやサイドチェーンよりもレジャーインデックスが高いため、トランザクションが`LastLedgerSequence`を本来の意図通りに使用している場合、メインネットのトランザクションをサイドチェーンやテストネットワークでリプレイする方が現実的です。 +- ネットワークが両方とも1024以下のIDを持っているか、両方のネットワークが同じIDを使用しているか、2つ目のネットワークが`NetworkID`フィールドを必要としないかのいずれか。 ## Signersフィールド diff --git a/content/_snippets/etl-source-object.ja.md b/content/_snippets/etl-source-object.ja.md new file mode 100644 index 0000000000..4ed07362aa --- /dev/null +++ b/content/_snippets/etl-source-object.ja.md @@ -0,0 +1,13 @@ +### ETLソースオブジェクト + + +レポートモードサーバでは、`etl_sources`フィールドの各メンバは以下のフィールドを持つオブジェクトです。 + +| フィールド | 型 | 説明 | +|-----------------------------|-------|-------------| +| `connected` | 真偽値 | `true`の場合、レポートモードサーバがこのP2Pモードサーバに接続していることを示します。`false`の場合、サーバに接続していないことを示します。これは設定ミスやネットワーク障害によるものか、P2Pモードサーバが停止している可能性があります。 | +| `grpc_port` | 文字列 | このレポート モードサーバが接続し、gRPCを介してレジャーデータを取得するように設定されている P2P モード サーバのポート番号。 | +| `ip` | 文字列 | P2PモードサーバのIPアドレス(IPv4またはIPv6)。 | +| `last_message_arrival_time` | 文字列 | レポートモードサーバがこのP2Pサーバからメッセージを受信した最新の時刻を示すISO 8601タイムスタンプ。 | +| `validated_ledgers_range` | 文字列 | `complete_ledgers`と同じ形式で、このP2Pモードサーバが利用可能であると報告する、有効なレジャーのバージョンの範囲。 | +| `websocket_port` | 文字列 | このレポートモードサーバが、レポートモードから直接提供できないWebSocketリクエストを転送するように設定されているP2Pサーバのポート番号。 | diff --git a/content/_snippets/port-descriptor-object.ja.md b/content/_snippets/port-descriptor-object.ja.md new file mode 100644 index 0000000000..146e667433 --- /dev/null +++ b/content/_snippets/port-descriptor-object.ja.md @@ -0,0 +1,11 @@ +### ポート記述子オブジェクト + + +`ports`配列の各メンバーは以下のフィールドを持つオブジェクトです。 + +| フィールド | 値 | 説明 | +|------------|-------------|-------------| +| `port` | 文字列 - 数値 | サーバがリッスンしているポート番号。 | +| `protocol` | 文字列の配列 | このポートに接続されているプロトコルの一覧。有効なプロトコルには、JSON-RPCの`http`または`https`、WebSocketの`ws`、`ws2`、`wss`、`wss2`、[gRPC](configure-grpc.html)の`grpc`、[XRP Ledgerピアプロトコル](peer-protocol.html)の`peer`があります。 | + +**注記:** ネットワークインフラによっては、ここで報告されるポートやプロトコルが、外部のネットワークからサーバに到達する方法と一致しないことがあります。例えば、TLSがロードバランサやプロキシで終了する場合、サーバはあるポートで`http`と報告するかもしれませんが、外部からはポート443の`https`でしか到達できないかもしれません。 diff --git a/content/_snippets/rippled-api-links.md b/content/_snippets/rippled-api-links.md index 3c9b3ed2f6..d1534e4331 100644 --- a/content/_snippets/rippled-api-links.md +++ b/content/_snippets/rippled-api-links.md @@ -12,6 +12,7 @@ [通貨コード]: currency-formats.html#通貨コード [drops of XRP]: basic-data-types.html#specifying-currency-amounts [fee levels]: transaction-cost.html#fee-levels +[手数料レベル]: transaction-cost.html#手数料レベル [XRPのdrop数]: basic-data-types.html#通貨額の指定 [Hash]: basic-data-types.html#hashes [ハッシュ]: basic-data-types.html#ハッシュ @@ -38,6 +39,7 @@ [result code]: transaction-results.html [seconds since the Ripple Epoch]: basic-data-types.html#specifying-time [Reporting Mode]: rippled-server-modes.html#reporting-mode +[レポートモード]: rippled-server-modes.html#レポートモード [Rippleエポック以降の経過秒数]: basic-data-types.html#時間の指定 [Sequence Number]: basic-data-types.html#account-sequence [シーケンス番号]: basic-data-types.html#アカウントシーケンス @@ -49,6 +51,7 @@ [Specifying Time]: basic-data-types.html#specifying-time [時間の指定]: basic-data-types.html#時間の指定 [stand-alone mode]: rippled-server-modes.html#stand-alone-mode +[スタンドアロンモード]: rippled-server-modes.html#スタンドアロンモード [standard format]: response-formatting.html [標準フォーマット]: response-formatting.html [Transaction Cost]: transaction-cost.html diff --git a/content/references/http-websocket-apis/peer-port-methods/validator-list.md b/content/references/http-websocket-apis/peer-port-methods/validator-list.md index fee082b6ff..55f6bc5275 100644 --- a/content/references/http-websocket-apis/peer-port-methods/validator-list.md +++ b/content/references/http-websocket-apis/peer-port-methods/validator-list.md @@ -14,8 +14,7 @@ Like the [Peer Crawler](peer-crawler.html), the validator list method is availab ## Request Format -To request the Validator List information, make the following HTTP -request: +To request the Validator List information, make the following HTTP request: - **Protocol:** https - **HTTP Method:** GET diff --git a/content/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md b/content/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md index de1a100e5b..4449a9be7c 100644 --- a/content/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md +++ b/content/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md @@ -413,10 +413,10 @@ The response follows the [standard format][], with a successful result containin |:-----------------------|:---------------------------|:-----------------------| | `account` | String | Unique [Address][] of the account this request corresponds to. This is the "perspective account" for purpose of the trust lines. | | `lines` | Array | Array of trust line objects, as described below. If the number of trust lines is large, only returns up to the `limit` at a time. | -| `ledger_current_index` | Integer - [Ledger Index][] | _(Omitted if `ledger_hash` or `ledger_index` provided)_ The ledger index of the current open ledger, which was used when retrieving this information. [New in: rippled 0.26.4-sp1][] | -| `ledger_index` | Integer - [Ledger Index][] | _(Omitted if `ledger_current_index` provided instead)_ The ledger index of the ledger version that was used when retrieving this data. [New in: rippled 0.26.4-sp1][] | -| `ledger_hash` | String - [Hash][] | _(May be omitted)_ The identifying hash the ledger version that was used when retrieving this data. [New in: rippled 0.26.4-sp1][] | -| `marker` | [Marker][] | Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no additional pages after this one. [New in: rippled 0.26.4][] | +| `ledger_current_index` | Integer - [Ledger Index][] | _(Omitted if `ledger_hash` or `ledger_index` provided)_ The ledger index of the current open ledger, which was used when retrieving this information. | +| `ledger_index` | Integer - [Ledger Index][] | _(Omitted if `ledger_current_index` provided instead)_ The ledger index of the ledger version that was used when retrieving this data. | +| `ledger_hash` | String - [Hash][] | _(May be omitted)_ The identifying hash the ledger version that was used when retrieving this data. | +| `marker` | [Marker][] | Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no additional pages after this one. | Each trust line object has some combination of the following fields: diff --git a/content/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md b/content/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md index 152790e286..2aee1702bb 100644 --- a/content/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md +++ b/content/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md @@ -55,8 +55,8 @@ A request can include the following parameters: | Field | Type | Required? | Description | |:---------------|:---------------------|:----------|-------------| | `account` | String - [Address][] | Yes | Look up Offers placed by this account. | -| `ledger_hash` | String | No | A 20-byte hex string for the ledger version to use. (See [Specifying Ledgers][]) | -| `ledger_index` | Number or String | No | The [ledger index][] of the ledger to use, or a shortcut string to choose a ledger automatically. (See [Specifying Ledgers][]) | +| `ledger_hash` | [Hash][] | No | A 20-byte hex string for the ledger version to use. (See [Specifying Ledgers][]) | +| `ledger_index` | [Ledger Index][] | No | The [ledger index][] of the ledger to use, or a shortcut string to choose a ledger automatically. (See [Specifying Ledgers][]) | | `limit` | Number | No | Limit the number of Offers to retrieve. The server may return fewer than this number of results. Must be within the inclusive range 10 to 400. Positive values outside this range are replaced with the closest valid option.The default is 200. | | `marker` | [Marker][] | No | Value from a previous paginated response. Resume retrieving data where that response left off. | @@ -157,6 +157,7 @@ An example of a successful response: } } ``` + *Commandline* ```json @@ -191,10 +192,10 @@ The response follows the [standard format][], with a successful result containin |:-----------------------|:--------------------------|:------------------------| | `account` | String | Unique [Address][] identifying the account that made the offers | | `offers` | Array | Array of objects, where each object represents an offer made by this account that is outstanding as of the requested ledger version. If the number of offers is large, only returns up to `limit` at a time. | -| `ledger_current_index` | Number - [Ledger Index][] | _(Omitted if `ledger_hash` or `ledger_index` provided)_ The ledger index of the current in-progress ledger version, which was used when retrieving this data. [New in: rippled 0.26.4-sp1][] | -| `ledger_index` | Number - [Ledger Index][] | _(Omitted if `ledger_current_index` provided instead)_ The ledger index of the ledger version that was used when retrieving this data, as requested. [New in: rippled 0.26.4-sp1][] | -| `ledger_hash` | String - [Hash][] | _(May be omitted)_ The identifying hash of the ledger version that was used when retrieving this data. [New in: rippled 0.26.4-sp1][] | -| `marker` | [Marker][] | _(May be omitted)_ Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no pages of information after this one. [New in: rippled 0.26.4][] | +| `ledger_current_index` | Number - [Ledger Index][] | _(Omitted if `ledger_hash` or `ledger_index` provided)_ The ledger index of the current in-progress ledger version, which was used when retrieving this data. | +| `ledger_index` | Number - [Ledger Index][] | _(Omitted if `ledger_current_index` provided instead)_ The ledger index of the ledger version that was used when retrieving this data, as requested. | +| `ledger_hash` | String - [Hash][] | _(May be omitted)_ The identifying hash of the ledger version that was used when retrieving this data. | +| `marker` | [Marker][] | _(May be omitted)_ Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no pages of information after this one. | Each offer object contains the following fields: diff --git a/content/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md b/content/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md index d3e9b67933..36bc90de65 100644 --- a/content/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md +++ b/content/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md @@ -37,13 +37,13 @@ The request can contain the following parameters: | `Field` | Type | Description | |:---------------|:---------------------------|:-------------------------------| -| `ledger_hash` | String | _(Optional)_ A 20-byte hex string for the ledger version to use. (See [Specifying Ledgers][]). | -| `ledger_index` | String or Unsigned Integer | _(Optional)_ The [ledger index][] of the ledger to use, or a shortcut string to choose a ledger automatically. (See [Specifying Ledgers][]) | +| `ledger_hash` | [Hash][] | _(Optional)_ A 20-byte hex string for the ledger version to use. (See [Specifying Ledgers][]). | +| `ledger_index` | [Ledger Index][] | _(Optional)_ The [ledger index][] of the ledger to use, or a shortcut string to choose a ledger automatically. (See [Specifying Ledgers][]) | | `transactions` | Boolean | _(Optional)_ If `true`, return information on transactions in the specified ledger version. Defaults to `false`. Ignored if you did not specify a ledger version. | | `expand` | Boolean | _(Optional)_ Provide full JSON-formatted information for transaction/account information instead of only hashes. Defaults to `false`. Ignored unless you request transactions. | | `owner_funds` | Boolean | _(Optional)_ If `true`, include `owner_funds` field in the metadata of OfferCreate transactions in the response. Defaults to `false`. Ignored unless transactions are included and `expand` is true. | | `binary` | Boolean | _(Optional)_ If `true`, and `transactions` and `expand` are both also `true`, return transaction information in binary format (hexadecimal string) instead of JSON format. | -| `diff` | Boolean | _(Optional)_ If `true`, returns all objects that were added, modified, or deleted as part of applying transactions in the specified ledger. +| `diff` | Boolean | _(Optional)_ If `true`, returns all objects that were added, modified, or deleted as part of applying transactions in the specified ledger. | The `ledger` field is deprecated and may be removed without further notice. @@ -85,21 +85,21 @@ The response follows the [standard format][], with a successful result containin | `ledger.account_hash` | String | Hash of all account state information in this ledger, as hex | | `ledger.accountState` | Array | (Omitted unless requested) All the [account-state information](ledger-data-formats.html) in this ledger. | | `ledger.close_flags` | Integer | A bit-map of [flags relating to the closing of this ledger](ledger-header.html#close-flags). | -| `ledger.close_time` | Integer | The time this ledger was closed, in [seconds since the Ripple Epoch][] | +| `ledger.close_time` | Integer | The time this ledger was closed, in [seconds since the Ripple Epoch][]. | | `ledger.close_time_human` | String | The time this ledger was closed, in human-readable format. Always uses the UTC time zone. | | `ledger.close_time_resolution` | Integer | Ledger close times are rounded to within this many seconds. | -| `ledger.closed` | Boolean | Whether or not this ledger has been closed | +| `ledger.closed` | Boolean | Whether or not this ledger has been closed. | | `ledger.ledger_hash` | String | Unique identifying hash of the entire ledger. | -| `ledger.ledger_index` | String | The [Ledger Index][] of this ledger, as a quoted integer | +| `ledger.ledger_index` | String | The [Ledger Index][] of this ledger, as a quoted integer. | | `ledger.parent_close_time` | Integer | The time at which the previous ledger was closed. | | `ledger.parent_hash` | String | Unique identifying hash of the ledger that came immediately before this one. | | `ledger.total_coins` | String | Total number of XRP drops in the network, as a quoted integer. (This decreases as transaction costs destroy XRP.) | -| `ledger.transaction_hash` | String | Hash of the transaction information included in this ledger, as hex | +| `ledger.transaction_hash` | String | Hash of the transaction information included in this ledger, as hex. | | `ledger.transactions` | Array | (Omitted unless requested) Transactions applied in this ledger version. By default, members are the transactions' identifying [Hash][] strings. If the request specified `expand` as true, members are full representations of the transactions instead, in either JSON or binary depending on whether the request specified `binary` as true. | | `ledger_hash` | String | Unique identifying hash of the entire ledger. | | `ledger_index` | Number | The [Ledger Index][] of this ledger. | | `validated` | Boolean | _(May be omitted)_ If `true`, this is a validated ledger version. If omitted or set to `false`, this ledger's data is not final. | -| `diff` | Object | _(Omitted unless requested with the `diff` parameter)_ Object containing an array of hashes that were added, modified, or deleted as part of applying transactions for the ledger. +| `diff` | Object | _(Omitted unless requested with the `diff` parameter)_ Object containing an array of hashes that were added, modified, or deleted as part of applying transactions for the ledger. | If the request specified `"owner_funds": true` and expanded transactions, the response has a field `owner_funds` in the `metaData` object of each [OfferCreate transaction][]. The purpose of this field is to make it easier to track the [funding status of offers](offers.html#lifecycle-of-an-offer) with each new validated ledger. This field is defined slightly differently than the version of this field in [Order Book subscription streams](subscribe.html#order-book-streams): @@ -107,7 +107,7 @@ If the request specified `"owner_funds": true` and expanded transactions, the re |:--------------|:-------|:----------------------------------------------------| | `owner_funds` | String | Numeric amount of the `TakerGets` currency that the `Account` sending this OfferCreate transaction has after the execution of all transactions in this ledger. This does not check whether the currency amount is [frozen](freezes.html). | -If the request specified `"diff: true`, the response has an object `diff`. The fields of this object are as follows: +If the request specified `"diff": true`, the response has an object `diff`. The fields of this object are as follows: | `Field` | Value | Description | |:--------------|:-------|:----------------------------------------------------| diff --git a/content/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md b/content/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md index b37bb0674c..a5059eef9a 100644 --- a/content/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md +++ b/content/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md @@ -46,7 +46,7 @@ An example of the request format: *Commandline* -``` +```sh #Syntax: ledger ledger_index|ledger_hash [full|tx] # "full" is equivalent to "full": true # "tx" is equivalent to "transactions": true diff --git a/content/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md b/content/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md index ad7cd60a32..a60426de21 100644 --- a/content/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md +++ b/content/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md @@ -52,7 +52,6 @@ The request includes the following parameters: |:-------------|:-------|:-----------------------------------| | `public_key` | String | The [base58][]-encoded public key of the validator to look up. This can be the master public key or ephemeral public key. | -**Note:** The commandline format for this method does not work in rippled v1.5.0. See [issue #3317](https://github.com/XRPLF/rippled/issues/3317) for details. ### Response Format diff --git a/content/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md b/content/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md index 9f6b930360..6b65ba8d73 100644 --- a/content/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md +++ b/content/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md @@ -111,7 +111,7 @@ The `info` object may have some arrangement of the following fields: | `pubkey_validator` | String | _(Admin only)_ Public key used by this node to sign ledger validations. This _validation key pair_ is derived from the `[validator_token]` or `[validation_seed]` config field. | | `reporting` | Object | _([Reporting mode](rippled-server-modes.html) servers only)_ Information about this server's reporting-mode specific configurations. | | `reporting.etl_sources` | Array | _([Reporting mode](rippled-server-modes.html) servers only)_ A list of P2P-mode servers this reporting mode is retrieving data from. Each entry in this array is an [ETL Source object](#etl-source-object). | -| `reporting.is_writer` | Boolean | _([Reporting mode](rippled-server-modes.html) servers only)_ If `true`, this server is writing to the external database with ledger data. If `false`, it is not currently writing, possibly because another reporting mode server is currently populating a shared database, or because it's configured as read-only.| +| `reporting.is_writer` | Boolean | _([Reporting mode](rippled-server-modes.html) servers only)_ If `true`, this server is writing to the external database with ledger data. If `false`, it is not currently writing, possibly because another reporting mode server is currently populating a shared database, or because it's configured as read-only. | | `reporting.last_publish_time` | String | _([Reporting mode](rippled-server-modes.html) servers only)_ An ISO 8601 timestamp indicating when this server last published a validated ledger to its [subscription streams](subscribe.html). | | `server_state` | String | A string indicating to what extent the server is participating in the network. See [Possible Server States](rippled-server-states.html) for more details. | | `server_state_duration_us` | Number | The number of consecutive microseconds the server has been in the current state. | diff --git a/dactyl-config.yml b/dactyl-config.yml index 3f0525c411..bcf2eb3ba1 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -2304,10 +2304,12 @@ pages: targets: - ja - # TODO: translate - md: references/protocol/ledger-data/common-fields.md targets: - en + + - md: "@i18n/ja/references/protocol/ledger-data/common-fields.md" + targets: - ja - md: references/protocol/ledger-data/ledger-entry-types/index.md @@ -2486,9 +2488,7 @@ pages: targets: - en - # TODO: update translation with rippled 1.11.0 changes - md: "@i18n/ja/references/protocol/transactions/common-fields.md" - outdated_translation: true targets: - ja @@ -2865,7 +2865,6 @@ pages: # Client Libraries --------------------------------------------------------- - # TODO: translate page & blurb - md: references/client-libraries.md targets: - en @@ -3012,10 +3011,12 @@ pages: targets: - ja - # TODO: translate - md: references/http-websocket-apis/api-conventions/rate-limiting.md targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/api-conventions/rate-limiting.md" + targets: - ja - md: references/http-websocket-apis/api-conventions/rippled-server-states.md @@ -3074,9 +3075,7 @@ pages: targets: - en - # TODO: update translation for rippled v1.11.0 - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_currencies.md" - outdated_translation: true targets: - ja @@ -3084,9 +3083,7 @@ pages: targets: - en - # TODO: update translation for rippled v1.11.0 - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_info.md" - outdated_translation: true targets: - ja @@ -3094,9 +3091,7 @@ pages: targets: - en - # TODO: update translation for rippled v1.11.0 - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_lines.md" - outdated_translation: true targets: - ja @@ -3112,9 +3107,7 @@ pages: targets: - en - # TODO: update translation for rippled v1.11.0 - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_objects.md" - outdated_translation: true targets: - ja @@ -3122,9 +3115,7 @@ pages: targets: - en - # TODO: update translation for rippled v1.11.0 - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/account-methods/account_offers.md" - outdated_translation: true targets: - ja @@ -3165,7 +3156,6 @@ pages: - en - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md" - outdated_translation: true targets: - ja @@ -3197,7 +3187,6 @@ pages: targets: - en - # TODO: update the translation of this page - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/ledger-methods/ledger_entry.md" targets: - ja @@ -3262,9 +3251,7 @@ pages: targets: - en - # TODO: update translation - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/path-and-order-book-methods/amm_info.md" - outdated_translation: true targets: - ja @@ -3380,19 +3367,19 @@ pages: targets: - ja - # TODO: translate - md: references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/manifest.md" + targets: - ja - md: references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md targets: - en - # TODO: update translation with reporting fields, ports field, ETL source object, corrected state_account.*.transitions field - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_info.md" - outdated_translation: true targets: - ja @@ -3400,9 +3387,7 @@ pages: targets: - en - # TODO: update translation with reporting fields, ports field, ETL source object, corrected state_account.*.transitions field - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/server-info-methods/server_state.md" - outdated_translation: true targets: - ja @@ -3414,17 +3399,20 @@ pages: targets: - ja - # TODO: translate - md: references/http-websocket-apis/public-api-methods/clio-methods/server_info-clio.md - outdated_translation: true targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/server_info-clio.md" + targets: - ja - # TODO: translate - md: references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/public-api-methods/clio-methods/ledger-clio.md" + targets: - ja - md: references/http-websocket-apis/public-api-methods/clio-methods/nft_history.md @@ -3435,7 +3423,6 @@ pages: targets: - ja - # TODO: translate - md: references/http-websocket-apis/public-api-methods/clio-methods/nft_info.md targets: - en @@ -3715,9 +3702,7 @@ pages: targets: - en - # TODO: update translation for rippled v1.11.0 - md: "@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/feature.md" - outdated_translation: true targets: - ja @@ -3745,10 +3730,12 @@ pages: targets: - ja - # TODO: translate - md: references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_info.md targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_info.md" + targets: - ja - md: references/http-websocket-apis/admin-api-methods/status-and-debugging-methods/validator_list_sites.md @@ -3775,10 +3762,12 @@ pages: targets: - ja - # TODO: translate page & blurb - md: references/http-websocket-apis/peer-port-methods/health-check.md targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/peer-port-methods/health-check.md" + targets: - ja - md: references/http-websocket-apis/peer-port-methods/peer-crawler.md @@ -3789,10 +3778,12 @@ pages: targets: - ja - # TODO: translate page & blurb - md: references/http-websocket-apis/peer-port-methods/validator-list.md targets: - en + + - md: "@i18n/ja/references/http-websocket-apis/peer-port-methods/validator-list.md" + targets: - ja # Placeholder / redirect for XRP-API docs. diff --git a/img/ledger-object-ids.ja.svg b/img/ledger-object-ids.ja.svg index 6162a89958..f4c262207f 100644 --- a/img/ledger-object-ids.ja.svg +++ b/img/ledger-object-ids.ja.svg @@ -230,7 +230,7 @@ />レジャーオブジェクトID一意なオブジェクトID