Get block

Retrieves a single block.

GET
/extended/v2/blocks/{height_or_hash}

Get block

Retrieves a single block

Path Parameters

height_or_hash
Required
integer | string

filter by block height, hash, index block hash or the constant latest to filter for the most recent block

Status codeDescription
200Block
/extended/v2/blocks/{height_or_hash}

curl -X GET "https://api.hiro.so/extended/v2/blocks/42000"

A block

{
  "canonical": true,
  "height": 0,
  "hash": "string",
  "block_time": 0,
  "block_time_iso": "string",
  "index_block_hash": "string",
  "parent_block_hash": "string",
  "parent_index_block_hash": "string",
  "burn_block_time": 0,
  "burn_block_time_iso": "string",
  "burn_block_hash": "string",
  "burn_block_height": 0,
  "miner_txid": "string",
  "tx_count": 0,
  "execution_cost_read_count": 0,
  "execution_cost_read_length": 0,
  "execution_cost_runtime": 0,
  "execution_cost_write_count": 0,
  "execution_cost_write_length": 0
}