> For the complete documentation index, see [llms.txt](https://docs.ainetwork.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ainetwork.ai/ain-blockchain/ai-network-design/block-and-blockchain.md).

# Block Structure

Structure of a block:

* Block

  * **header**
    * **epoch:** The epoch number at which the block was created.
    * **number:** The number of this block that is incremented by 1 as a new block is created. The genesis block has a block number of 0.
    * **last\_hash:** The hash of the previous block in the blockchain.
    * **last\_votes\_hash**: The hash of the last\_votes (propose, > 2/3 pre-votes and pre-commits) from validators that were used to reach consensus on the previous block.
    * **transactions\_hash**: The hash of the list of transactions that are included in the block.
    * **timestamp:** The unix timestamp for when the block was collated.
    * **proposer:** The node who created and proposed the block.
    * **size:** The size of the block.
    * **state\_proof\_hash:** The hash of the state tree.
    * **validators:** List of validators who participated in the consensus process for this block.
    * **reward:** TBD.
  * **hash:** The hash of the block's header.
  * **last\_votes:** List of validators' voting transactions (propose, pre-votes and pre-commits) that contributed to reaching consensus on the previous block. In order for a block to be added to the blockchain, it needs more than 2/3 of the signed pre-commit transactions from validators where each vote is weighted in proportion to the voter's stake.
  * **transactions:** List of transactions included in the block.
    * \[{hash, signature, transaction data}, ...]


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ainetwork.ai/ain-blockchain/ai-network-design/block-and-blockchain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
