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
Header
The block's header.
sig
String
The block's signature.
transactions
A list of transactions.

Example:

1
{
2
"hash": "0x67e62d1da7bf41a7e7667f9273eefe5255756d14e424a135ea543e4bbb40e659",
3
"header": {
4
"creatorPubKey": "48YQpehoRDYsivCbnedrz19DfTvh345PwWAKGN3jdUjPNdG3Lte",
5
"difficulty": "0x989680",
6
"extra": "0x",
7
"nonce": "0x61879fb427b56cef",
8
"number": "0x2",
9
"parentHash": "0x211df3aed05b45d620850f40c9b4eac006da7ee0f76a7fa99d5ac16a2c2ca42c",
10
"stateRoot": "0xc222870b2ca3f71d30b8d06b8e3f633812a8c0473cecc38b6fcc12eb5cad89ec",
11
"timestamp": "0x5bda0ad4",
12
"totalDifficulty": "0x1312d00",
13
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000"
14
},
15
"sig": "0x3e001b22d640331fbf324138b6182ab851e2989319c37ec33044b5495cd86e2160ca0ca2291e66a06ed329a21f1acc7c1c5fa67d96d0b87f6aaec4892cfcac05",
16
"transactions": []
17
}
Copied!
Copy link