From 9c7468bcaa6fcaac88606d826697759ee5a50074 Mon Sep 17 00:00:00 2001 From: Oliver Eggert Date: Wed, 5 Feb 2025 13:49:33 -0800 Subject: [PATCH 1/2] fix data type difference between api versions --- .../public-api-methods/ledger-methods/ledger.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md b/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md index b3462034f1..ec8be186fa 100644 --- a/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md +++ b/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md @@ -105,7 +105,7 @@ The response follows the [standard format][], with a successful result containin | `ledger.close_time_resolution` | Number | Ledger close times are rounded to within this many seconds. | | `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` | [API v1][]: String
[API v2][]: Number | The [Ledger Index][] of this ledger, as a quoted integer. | | `ledger.parent_close_time` | Number | The time at which the previous ledger was closed. | | `ledger.parent_hash` | String | The unique identifying hash of the ledger that came immediately before this one, as hexadecimal. | | `ledger.total_coins` | String | Total number of XRP drops in the network, as a quoted integer. (This decreases as transaction costs destroy XRP.) | From d5afc736d352ef63fe26fdc6b05b1e6745b33fa4 Mon Sep 17 00:00:00 2001 From: oeggert <117319296+oeggert@users.noreply.github.com> Date: Fri, 7 Feb 2025 14:32:39 -0800 Subject: [PATCH 2/2] Update docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md Co-authored-by: Rome Reginelli --- .../public-api-methods/ledger-methods/ledger.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md b/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md index ec8be186fa..56f708d56b 100644 --- a/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md +++ b/docs/references/http-websocket-apis/public-api-methods/ledger-methods/ledger.md @@ -105,7 +105,7 @@ The response follows the [standard format][], with a successful result containin | `ledger.close_time_resolution` | Number | Ledger close times are rounded to within this many seconds. | | `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` | [API v1][]: String
[API v2][]: Number | The [Ledger Index][] of this ledger, as a quoted integer. | +| `ledger.ledger_index` | [API v1][]: String
[API v2][]: Number | The [Ledger Index][] of this ledger. | | `ledger.parent_close_time` | Number | The time at which the previous ledger was closed. | | `ledger.parent_hash` | String | The unique identifying hash of the ledger that came immediately before this one, as hexadecimal. | | `ledger.total_coins` | String | Total number of XRP drops in the network, as a quoted integer. (This decreases as transaction costs destroy XRP.) |