---
title: "Get a Block Identifier by Number of Hash"
method: GET
path: "/{protocol}/{network}/block_identifier/{block_identifier}"
tags: ["Blocks"]
---

# Get a Block Identifier by Number of Hash

`GET /{protocol}/{network}/block_identifier/{block_identifier}`

Get the minimal block data, block header, by a user-defined block number or block hash. 

Use `-1` or `current` parameter to return the current block.

## Path parameters

- `protocol` string, required
- `network` string, required
- `block_identifier` string, required

## Response `200`

Block

- BlockIdentifier
  - `number` integer — The block number.
  - `id` string — The block hash.
  - `parent_id` string — The parent block hash.
  - `date` integer — The block date in Unix timestamp format.
  - `num_txs` integer — The amount of transaction in the block.

## Other responses

- `400` — Invalid Block hash
- `401` — Invalid or expired token
- `404` — Resource not found
- `429` — Rate limit exceeded
- `500` — An internal server error happened
- `503` — The resource you are trying to access is currently unavailable

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
