portal_debug_resolve_time_to_block
Convert any timestamp into the nearest indexed block or slot for debugging time windows or building manual block-range queries.
Instructions
ADVANCED: Resolve a timestamp to the nearest indexed block or slot.
COMMON USER ASKS:
Resolve one hour ago on Base
Resolve an older time on Polkadot
WHEN TO USE:
You are debugging timestamp windows or building a manual block-range query.
You want to inspect exact versus estimated timestamp-to-block resolution.
DON'T USE:
You just want to query by time; most public tools already accept natural timestamps directly.
EXAMPLES:
Resolve one hour ago on Base: {"network":"base-mainnet","timestamp":"1h ago"}
Resolve an older time on Polkadot: {"network":"polkadot","timestamp":"2026-04-08T12:00:00Z"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Network name or alias | |
| timestamp | Yes | Unix seconds, Unix milliseconds, ISO datetime, or relative input like "1h ago" |