Ledger Info API
Find sequence by timestamp
Resolves ledger sequence with a finalization time equal or less than a given timestamp. If the timestamp indicates some time in the future or, vise versa, less than the closing time of the first ledger, server returns 404 Not Found error.
get/explorer/{network}/ledger/sequence-from-timestamp
Path parameters
network'public' | 'testnet' required
Stellar network
Example:public
Stellar network
Query parameters
Timestamp to search (UNIX time or RFC 3339 timestamp)
Response
Ledger sequence resolved
Example response
{
"sequence": 42431435,
"timestamp": 1661781078,
"date": "2022-08-29T13:51:18.000Z"
}