Ledger Methods
Get current in-progress ledger index
wss://honeycluster.io
rpc method: ledger_current

Returns the sequence number of the current in-progress ledger (the one being built by consensus).

Try it now
Response · ledger_current WS Response
{
  "result": {
    "ledger_current_index": 89012346
  },
  "status": "success",
  "type": "response",
  "id": 1
}
Request Message
ledger_current WS Request
application/json
Get current in-progress ledger index
FieldTypeDescription
command
required
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+.
Example
Json
{
  "command": "ledger_current",
  "id": 1
}
Response Message
ledger_current WS Response
application/json
WebSocket response for ledger_current
FieldTypeDescription
result
object
status
enum<string>
Available
successerror
type
string
id
stringnumber
Echo of the client-provided correlation ID
Example
Json
{
  "result": {
    "ledger_current_index": 89012346
  },
  "status": "success",
  "type": "response",
  "id": 1
}