ledger_current
POST
Returns the ledger index of the in-progress ledger version the server is building.No hash is returned because the contents of an in-progress ledger keep changing.
Responses
ledger_current_indexinteger
The ledger index of the ledger version currently being built.codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "ERROR_CODE","message": "Unauthorized"}
cURL
curl -X POST 'https://xrpl-mainnet.nodit.io' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{"method": "ledger_current","params": []}'