Blocks
Get recent 2.x block headers
Changed onDeprecated: 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 URLhttp://localhost:20443
- URLhttp://localhost:20443/v2/headers/{quantity}
- Authnone required
Path parameters
quantityinteger required
Number of headers to return (max 256)
Parameters
./components/parameters/tip.yaml (unresolved $ref)
Response
Array of block headers
Block Headers required(unresolved $ref)
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking