ledger_current
Returns the ledger index of the current in-progress ledger. This call reaches the live rippled server (the open ledger), not Clio, so the value can change from one call to the next.
This method will use 20 Compute Units.
Reference: Here
Parameters
None
Returns
ledger_current_index(unsigned integer) The ledger index of the current in-progress ledger version.
// Result
{
"result": {
"ledger_current_index": 107292935,
"status": "success"
},
"status": "success",
"type": "response",
"forwarded": true
}Over WebSocket, send {"id":1,"command":"ledger_current"} to wss://mainnet.xrpl.validationcloud.io/v1/<YOUR_API_KEY_HERE>.
Last updated
Was this helpful?