wss://honeycluster.ioledger_closedReturns the sequence number and hash of the most recently closed (validated) ledger.
{
"result": {
"ledger_hash": "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A652",
"ledger_index": 89012345
},
"status": "success",
"type": "response",
"id": 1
}| Field | Type | Description |
|---|---|---|
commandrequired | string | WebSocket command name |
id | object | Client-supplied identifier to correlate requests with responses. |
api_version | object | API version for the response format. Version 2 is the default for rippled 2.0+. |
{
"command": "ledger_closed",
"id": 1
}| Field | Type | Description |
|---|---|---|
result | object | |
status | enum<string> | Available successerror |
type | string | |
id | stringnumber | Echo of the client-provided correlation ID |
{
"result": {
"ledger_hash": "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A652",
"ledger_index": 89012345
},
"status": "success",
"type": "response",
"id": 1
}