wss://honeycluster.ioledger_currentReturns the sequence number of the current in-progress ledger (the one being built by consensus).
{
"result": {
"ledger_current_index": 89012346
},
"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_current",
"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_current_index": 89012346
},
"status": "success",
"type": "response",
"id": 1
}