/v1/ledger/at
Resolve a datetime to the last ledger closed at or before it (binary search)
Request
https://api.xrpl.to/v1/ledger/at?time=2026-07-01| Query parameter | Value | Description |
|---|---|---|
| time | unix ms or ISO date (required) |
curl 'https://api.xrpl.to/v1/ledger/at?time=2026-07-01'
Response
https://api.xrpl.to/v1/ledger/at?time=2026-07-01{ "ledger_index": 105288796, "close_time": 1782864000000, "iterations": 27 }
{ ledger_index, close_time, clampedToHead?, clampedToGenesis? }
What it does
Resolve a datetime to the last ledger closed at or before it (binary search)