Blocks

Get recent 2.x block headers

Changed on

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}

Request

  • Base URL
    http://localhost:20443
  • URL
    http://localhost:20443/v2/headers/{quantity}
  • Auth
    none required

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