Get recent blocks

Retrieves a list of recently mined blocks.

GET
/extended/v1/block

Get recent blocks

Deprecated

This endpoint is deprecated in favor of Get blocks.

Retrieves a list of recently mined blocks

If you need to actively monitor new blocks, we highly recommend subscribing to WebSockets or Socket.io for real-time updates.

Query Parameters

limitinteger

max number of blocks to fetch

Default: 20Maximum: 30

offsetinteger

index of first block to fetch

Example: 42000
Status codeDescription
200List of blocks
/extended/v1/block

curl -X GET "https://api.hiro.so/extended/v1/block?limit=20&offset=42000"

GET request that returns blocks

{
  "limit": 30,
  "offset": 0,
  "total": 0,
  "results": [
    {
      "canonical": true,
      "height": 0,
      "hash": "string",
      "block_time": 0,
      "block_time_iso": "string",
      "index_block_hash": "string",
      "parent_block_hash": "string",
      "burn_block_time": 0,
      "burn_block_time_iso": "string",
      "burn_block_hash": "string",
      "burn_block_height": 0,
      "miner_txid": "string",
      "parent_microblock_hash": "string",
      "parent_microblock_sequence": 0,
      "txs": [
        "string"
      ],
      "microblocks_accepted": [
        "string"
      ],
      "microblocks_streamed": [
        "string"
      ],
      "execution_cost_read_count": 0,
      "execution_cost_read_length": 0,
      "execution_cost_runtime": 0,
      "execution_cost_write_count": 0,
      "execution_cost_write_length": 0,
      "microblock_tx_count": {
        "property1": 0,
        "property2": 0
      }
    }
  ]
}