> For the complete documentation index, see [llms.txt](https://democrachain.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://democrachain.gitbook.io/docs/block.md).

# 📦 Block

The basic piece of a Blockchain

The basic content of a block consists on minimal information about when (**timestamp**) the block was created, who created it (**by**) and the content of the block (**body**).

```javascript
block = {
  prevHash: "Previous block's hash",
  height: "Previous block's height",
  version: "2", // block version, currently 2
  data: "Block content",
  timestamp: "Block time",
  scope: "Scope for the block",
  by: "User or entity that created the block",
};
```

The **prevHash** and **height** refers to the previous block's hash, this is required to ensure the order of the chain is preserved and the new block is the correct one.

Each **scope** is an isolated space with it's own **hash** and **height** sequence.
