Convert any datetime to the corresponding XRPL Ledger Index. Free, fast, and reliable.
Enter a datetime to get the corresponding ledger index
Visualize the number of ledgers created over time
Simple REST API to convert dates to XRPL ledger indexes
Get the ledger index for a specific datetime. Returns the ledger that was active at the start of that hour.
{
"ledger_index": 93474603,
"ledger_count": 926,
"close_time": "2025-01-15T12:00:00Z",
"normalized_hour": "2025-01-15T12:00:00Z",
"resolution": "hourly"
}Get ledger indexes for a date range. Supports hourly or daily resolution.
{
"meta": {
"resolution": "daily",
"from": "2025-01-01T00:00:00Z",
"to": "2025-01-03T23:00:00Z",
"count": 3
},
"items": [
{
"datetime": "2025-01-01T00:00:00Z",
"ledger_index": 93153309,
"ledger_count": 22082,
"close_time": "2025-01-01T00:00:00Z"
},
...
]
}