Block

This page describes the structure of a block.

Overview

A block is a container data structure that includes many transactions. It is backward linked to another block forming a chain of blocks.

Transactions in a block alter the state of the entire chain of blocks. A block includes information proving that work was done in other to create the block. It also includes proof of that the transactions contained in it have not been altered.

Structure

Field

Type

Description

hash

String

The cryptographic hash of the block.

header

The block's header.

sig

String

The block's signature.

transactions

A list of transactions.

Example:

{
  "hash": "0x67e62d1da7bf41a7e7667f9273eefe5255756d14e424a135ea543e4bbb40e659",
  "header": {
    "creatorPubKey": "48YQpehoRDYsivCbnedrz19DfTvh345PwWAKGN3jdUjPNdG3Lte",
    "difficulty": "0x989680",
    "extra": "0x",
    "nonce": "0x61879fb427b56cef",
    "number": "0x2",
    "parentHash": "0x211df3aed05b45d620850f40c9b4eac006da7ee0f76a7fa99d5ac16a2c2ca42c",
    "stateRoot": "0xc222870b2ca3f71d30b8d06b8e3f633812a8c0473cecc38b6fcc12eb5cad89ec",
    "timestamp": "0x5bda0ad4",
    "totalDifficulty": "0x1312d00",
    "transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "sig": "0x3e001b22d640331fbf324138b6182ab851e2989319c37ec33044b5495cd86e2160ca0ca2291e66a06ed329a21f1acc7c1c5fa67d96d0b87f6aaec4892cfcac05",
  "transactions": []
}

Last updated