Block by height (v3)

RPC node

Retrieves a block by its height using the v3 endpoint.

GET

Parameters

Path Parameters

block_height
REQUIRED
integer The block's height

Query Parameters

tip
string Stacks chain tip to query from. Options: - (empty/omitted): Use latest anchored tip (canonical confirmed state) - `latest`: Use latest known tip including unconfirmed microblocks - `{block_id}`: Use specific block ID (64 hex characters)
Status codeDescription
200The raw SIP-003-encoded block will be returned.
400Bad request
404Not found
500Internal Server Error
cURL
curl -L \
"https://api.hiro.so/v3/blocks/height/{block_height}?tip={tip}" \
-H 'Accept: application/json'

How is this guide?