Ledger sequence from timestamp
ledger_sequence_from_timestampResolve the Stellar ledger sequence closing at or before a supplied UNIX or RFC 3339 timestamp; returns 404 for timestamps before the first ledger or in the future.
Instructions
Resolve the ledger sequence whose close time is equal to or before the given timestamp (UNIX seconds or RFC 3339). Returns 404 if the time is before the first ledger or in the future.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Stellar network. Defaults to STELLAR_EXPERT_NETWORK or public. | |
| timestamp | Yes | UNIX time (seconds) or RFC 3339 timestamp, e.g. 1642597270 or 2022-08-29T13:51:18Z |