Skip to main content
Every query you run is registered automatically, and its id is in every response (bl.query_id_template). Use this endpoint only if you want the id before running anything. See Prepared queries.

Body

A query body without the range: logs, transactions, fields, joinTransactions, blockInterval, blockOffset. With strictFields: true, a field this chain doesn’t have is a 400 here too (the prepared query itself isn’t strict). See Query.

Example

Response

string
The template’s id: send it as queryId with fromBlock, toBlock, maxObjects and strictFields.
integer
Seconds until it expires if unused. Each use restarts the timer.

Using it

When the server answers 400 unknown_query_id (expired, or another chain), send the full body again.