- APIs
- Stacks Blockchain API
- Block By Height
Get block by height
Retrieves block details of a specific block for a given chain height.
GET
Parameters
Path Parameters
height
REQUIRED
integer Height of the block
Status code | Description |
---|---|
200 | A block |
4XX | Default Response |
cURL
curl -L \"https://api.hiro.so/extended/v1/block/by_height/{height}" \-H 'Accept: application/json'
Response
{"canonical": false,"height": 144000,"hash": "0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79","block_time": 144000,"block_time_iso": "string","tenure_height": 144000,"index_block_hash": "0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79","parent_block_hash": "0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79","burn_block_time": 144000,"burn_block_time_iso": "string","burn_block_hash": "0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79","burn_block_height": 144000,"miner_txid": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","execution_cost_read_count": 1,"execution_cost_read_length": 0,"execution_cost_runtime": 0,"execution_cost_write_count": 1,"execution_cost_write_length": 0,"txs": ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"],"parent_microblock_hash": "0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79","parent_microblock_sequence": 144000,"microblocks_accepted": ["0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79"],"microblocks_streamed": ["0x4839a8b01cfb39ffcc0d07d3db31e848d5adf5279d529ed5062300b9f353ff79"]}