Match a time to a block
portal_debug_resolve_time_to_blockResolve any timestamp to the nearest indexed block or slot. Use it to debug time windows or build manual block-range queries on blockchain networks.
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" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _ui | No | Optional chart, table, and follow-up presentation metadata. | |
| _llm | No | Hints that help an AI client locate the primary evidence. | |
| _meta | No | Network, block range, timing, and row-count metadata. | |
| error | No | Structured failure details when the tool cannot complete the request. | |
| items | No | Primary result rows when the tool returns a list. | |
| value | No | Primary result when the tool returns a scalar value. | |
| answer | No | Concise answer grounded in the returned blockchain data. | |
| _notice | No | Important limitation or truncation notice. | |
| display | No | Plain-language labels for presenting the result. | |
| _notices | No | Important limitations or truncation notices. | |
| _summary | No | Human-readable summary of the result. | |
| _coverage | No | Completeness of the requested window and result set. | |
| _evidence | No | Replayable arguments, exact-data digest, row count, and completeness receipt. | |
| _ordering | No | Ordering guarantees for the returned data. | |
| _execution | No | Bounded execution and scan details. | |
| _freshness | No | Freshness and finality information for the returned data. | |
| next_steps | No | Safe follow-up actions and continuation guidance. | |
| _pagination | No | Pagination state and an optional continuation cursor. | |
| investigation | No | Evidence paths, useful pivots, and result limitations. | |
| pipes_handoff | No | Optional SQD Pipes guidance for custom data needs. | |
| _tool_contract | No | Tool identity, intent, and supported blockchain families. |