Update outdated "ledger" key to "ledger_index" key

This commit is contained in:
9oelM
2023-06-23 21:19:30 +08:00
parent 3835551d0a
commit 5cff7b11c5
4 changed files with 6 additions and 6 deletions

View File

@@ -2,6 +2,6 @@
"id": 2, "id": 2,
"command": "account_objects", "command": "account_objects",
"account": "r3wN3v2vTUkr5qd6daqDc2xE4LSysdVjkT", "account": "r3wN3v2vTUkr5qd6daqDc2xE4LSysdVjkT",
"ledger": "validated", "ledger_index": "validated",
"type": "escrow" "type": "escrow"
} }

View File

@@ -201,7 +201,7 @@ JSON-RPC要求:
"params": [ "params": [
{ {
"account": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W", "account": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W",
"ledger": "validated" "ledger_index": "validated"
} }
] ]
} }
@@ -230,7 +230,7 @@ JSON-RPC要求:
} }
``` ```
この例では、最後に検証されたレジャーの時点において(要求の`"ledger": "validated"`と、応答の`"validated": "true"`を参照)、アカウントのシーケンスは**4**です(`"account_data"``"Sequence": 4`を参照)。 この例では、最後に検証されたレジャーの時点において(要求の`"ledger_index": "validated"`と、応答の`"validated": "true"`を参照)、アカウントのシーケンスは**4**です(`"account_data"``"Sequence": 4`を参照)。
アプリケーションが、このアカウントで署名された3つのトランザクションを送信する場合には、4、5、6のシーケンス番号を使用します。各トランザクションの検証を待たずに複数のトランザクションを送信するには、アプリケーションで継続的なアカウントシーケンス番号を使用します。 アプリケーションが、このアカウントで署名された3つのトランザクションを送信する場合には、4、5、6のシーケンス番号を使用します。各トランザクションの検証を待たずに複数のトランザクションを送信するには、アプリケーションで継続的なアカウントシーケンス番号を使用します。

View File

@@ -217,7 +217,7 @@ JSON-RPC Request:
"params": [ "params": [
{ {
"account": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W", "account": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W",
"ledger": "validated" "ledger_index": "validated"
} }
] ]
} }
@@ -246,7 +246,7 @@ Response body:
} }
``` ```
In this example, the account's sequence is **4** (note `"Sequence": 4`, in `"account_data"`) as of the last validated ledger (note `"ledger": "validated"` in the request, and `"validated": "true"` in the response). In this example, the account's sequence is **4** (note `"Sequence": 4`, in `"account_data"`) as of the last validated ledger (note `"ledger_index": "validated"` in the request, and `"validated": "true"` in the response).
If an application were to submit three transactions signed by this account, they would use sequence numbers 4, 5, and 6. To submit multiple transactions without waiting for validation of each, an application should keep a running account sequence number. If an application were to submit three transactions signed by this account, they would use sequence numbers 4, 5, and 6. To submit multiple transactions without waiting for validation of each, an application should keep a running account sequence number.

View File

@@ -226,7 +226,7 @@ Example Request:
"id": "example_check_individual_freeze", "id": "example_check_individual_freeze",
"command": "account_lines", "command": "account_lines",
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
"ledger": "validated", "ledger_index": "validated",
"peer": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW" "peer": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW"
} }