Blocks

Get recent 2.x block headers

Deprecated: This endpoint is deprecated since Nakamoto.** Stream (as a JSON array) up to quantity most recent anchored Stacks block headers. The result is ordered from the current tip backwards.

get/v2/headers/{quantity}

Path parameters

quantityinteger required

Number of headers to return (max 256)

Parameters

./components/parameters/tip.yaml — unresolved $ref

Response

Array of block headers

BlockHeaders required— unresolved $ref

Changes

Changed in 4 of the 53 revisions of this API.22