---
title: "List of blocks"
method: GET
path: "/blockchain-v2/{asset}/blocks"
tags: ["List of blockchain entities v2"]
---

# List of blocks

`GET /blockchain-v2/{asset}/blocks`

## Request

- Base URL: `https://api.coinmetrics.io/v4`
- URL: `https://api.coinmetrics.io/v4/blockchain-v2/{asset}/blocks`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/blockchain-v2/:asset/blocks/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of blockchain blocks metadata.<br/> Results are ordered by tuple `(height, block_hash)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.<br/> Results are limited to the last 30 days for Community users.

## Path parameters

- `asset` string, required

## Query parameters

- `block_hashes` string[]
- `heights` string[]
- `start_time` string
- `end_time` string
- `start_height` integer
- `end_height` integer
- `chain` string
- `start_inclusive` boolean
- `end_inclusive` boolean
- `timezone` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `pretty` boolean
- `next_page_token` string

## Response `200`

Blockchain blocks.

- BlockchainBlocksResponseV2: Blockchain blocks response.
  - `data` BlockchainBlockInfoV2[], required
    - `block_hash` string, required: Hash of the block.
    - `parent_block_hash` string: Hash of the block.
    - `height` string, required: Height of the block.
    - `consensus_time` string, required: The time in ISO 8601 date-time format. Always with nanoseconds precision.
    - `miner_time` string, required: The time in ISO 8601 date-time format. Always with nanoseconds precision.
    - `nonce` string: Nonce of the block, hex-encoded.
    - `extra_data` string: Extra data of the block, hex-encoded.
    - `n_transactions` string, required: Number of transactions.
    - `n_balance_updates` string, required: Number of balance updates.
    - `version` string: Version of the block.
    - `difficulty` string: Difficulty of the block.
    - `physical_size` string: Physical size of the block, bytes.
    - `consensus_size` string: Consensus size of the block.
    - `consensus_size_limit` string: Consensus size limit of the block.
    - `stale` string: This field is set to true if the corresponding block is stale. Otherwise omitted.
  - `next_page_token` string: Token of the next page results for a given request.
  - `next_page_url` string: URL of the next page results for a given request.
  - `warning` WarningObject
    - `type` string, required: Warning type string. Can be used for warning identification.
    - `message` string, required: Human-friendly warning description. Do not use for warning identification in your code.

## Other responses

- `401`: Requested resource requires authorization.
- `403`: Requested resource is not available with supplied credentials.

---

[API](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
