Skip to main content

ledger_closed RPC Method

Retrieves the distinct identifiers of the most recently closed ledger (This ledger is not necessarily validated and immutable yet)

Updated on
Jun 11, 2026

Parameters

object
object
REQUIRED

The ledger_closed request object.

Returns

result
object

A result object which contains the following fields:

ledger_hash
string

A 20-character hexadecimal string representing the ledger version

ledger_index
integer

The ledger index of the ledger to use

status
string

It indicates the status of the response

warnings
array

(Optional) An array of warning objects, each containing the following fields. Returned at the JSON-RPC response root on some servers and omitted from the result object

id
integer

The ID of the warning

message
string

The warning message

Request
Response
1
{
2
"result": {
3
"ledger_hash": "6188EA4100D68174D4D47C2861D04AFB9835A7C9DCF8937997D96E6A7B904FA7",
4
"ledger_index": 102609805,
5
"status": "success"
6
},
7
"status": "success",
8
"type": "response",
9
"forwarded": true,
10
"warnings": [
11
{
12
"id": 2001,
13
"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"
14
}
15
]
16
}
1
{
2
"result": {
3
"ledger_hash": "6188EA4100D68174D4D47C2861D04AFB9835A7C9DCF8937997D96E6A7B904FA7",
4
"ledger_index": 102609805,
5
"status": "success"
6
},
7
"status": "success",
8
"type": "response",
9
"forwarded": true,
10
"warnings": [
11
{
12
"id": 2001,
13
"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"
14
}
15
]
16
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free