Blockchain.com · JSON Structure

Data Api Block List Response Structure

Wrapper used by `block-height/{height}` returning an array of `Block` objects.

Type: object Properties: 1
CryptocurrencyBitcoinBlockchain DataExchangeMarket DataTradingPaymentsPublic APIs

BlockListResponse is a JSON Structure definition published by Blockchain.com, describing 1 property. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

blocks

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blockchain/refs/heads/main/json-structure/data-api-block-list-response-structure.json",
  "name": "BlockListResponse",
  "description": "Wrapper used by `block-height/{height}` returning an array of `Block` objects.",
  "type": "object",
  "properties": {
    "blocks": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "A Bitcoin block including its transactions, header, and chain status.",
        "properties": {
          "hash": {
            "type": "string",
            "description": "Block hash.",
            "example": "00000000000000000004f4e7a1..."
          },
          "ver": {
            "type": "int32",
            "description": "Block version.",
            "example": 536870912
          },
          "prev_block": {
            "type": "string",
            "description": "Previous block hash."
          },
          "mrkl_root": {
            "type": "string",
            "description": "Merkle root."
          },
          "time": {
            "type": "int64",
            "description": "Block timestamp (Unix seconds).",
            "example": 1748609400000
          },
          "bits": {
            "type": "int32",
            "description": "Difficulty bits.",
            "example": 1
          },
          "nonce": {
            "type": "int64",
            "description": "Nonce used to mine the block.",
            "example": 1
          },
          "n_tx": {
            "type": "int32",
            "description": "Number of transactions in the block.",
            "example": 1
          },
          "size": {
            "type": "int32",
            "description": "Block size in bytes.",
            "example": 1
          },
          "block_index": {
            "type": "int64",
            "description": "Internal block index.",
            "example": 1
          },
          "main_chain": {
            "type": "boolean",
            "description": "True if this block is part of the main chain.",
            "example": true
          },
          "height": {
            "type": "int32",
            "description": "Block height.",
            "example": 851234
          },
          "tx": {
            "type": "array",
            "description": "List of transactions included in the block.",
            "items": {
              "$ref": "#/components/schemas/Transaction"
            }
          }
        }
      }
    }
  }
}