Skip to main content

Query & response

Send a JSON request to POST /query relative to your Prep base URL.

Request​

{
"from_block": 0,
"to_block": 2,
"field_selection": {
"block": ["height", "hash", "time"],
"transaction": []
}
}
PropertyMeaning
from_blockRequired inclusive start
to_blockOptional exclusive end; omitted captures the available end
field_selectionRequested block/transaction field arrays
transaction_filterPublic transaction predicates
cursorOpaque continuation returned by the previous page
limitOptional scanned-block ceiling, not a matching-row count
scan_modeOptional adaptive mode for an explicit limit

Omitting limit uses adaptive scanning. Responses remain time/byte bounded. See fields and filters for available selections and preview limits for the hosted endpoint.

Response​

PropertyMeaning
networkSource network identifier
archive_heightAvailable archive height
epoch, revisionArchive snapshot identifiers, as decimal strings
from_block, to_blockQuery bounds
next_blockScan progress
cursorContinuation, or null when the captured range is complete
canonicalitySource canonicality description
data.blocksSelected block records
data.transactionsSelected matching transactions

Continue with the same original request plus the returned cursor. Do not replace from_block with next_block while retaining that cursor. Empty matches can still advance the scan.

Notes: A changed snapshot can return HTTP 409 REORG. Reconcile before restarting. HTTP 413 can require a smaller field selection. The full HTTP contract contains protocol bounds and detailed error behavior.