> For the complete documentation index, see [llms.txt](https://gaya-blockchain.gitbook.io/gaya-blockchain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gaya-blockchain.gitbook.io/gaya-blockchain/technical-overview/data-structures.md).

# Data Structures

GAYA’s blockchain leverages a highly modular and efficient data architecture to support its advanced functionalities. The network’s data structures are designed for flexibility, scalability, and performance, enabling seamless interactions across its decentralized ecosystem. Central to this architecture are cells, a unique storage paradigm that enhances data management and access.

#### <mark style="color:purple;">Cells as a Storage Solution</mark>

The concept of cells underpins GAYA’s data storage framework. A cell is a fundamental unit of storage that encapsulates data and metadata, acting as a building block for more complex data constructs. Unlike monolithic storage solutions, GAYA’s cell-based architecture is:

* Modular: Cells can be customized to store diverse data types, including smart contract states, transaction logs, and account balances. This modularity simplifies data handling and reduces redundancy.
* Efficient: By isolating specific data sets into individual cells, the system minimizes storage overhead and accelerates retrieval times. This architecture is particularly beneficial for high-frequency operations, such as DeFi transactions or gaming mechanics.
* Scalable: The cell-based design allows the blockchain to scale horizontally, efficiently managing increasing volumes of data without compromising performance.

#### <mark style="color:purple;">Cells Types</mark>

GAYA uses different “flavors” of cells to manage various stages of data storage and processing:

Builder Cells:

* These mutable cells are used during transaction assembly or state changes, allowing for rapid adjustments as data is being constructed.

Slice Cells:

* Represent segments of data that have been extracted or partially parsed. These cells allow efficient reading and processing without modifying the original data structure.

Continuation Cells:

* Contain operation sequences (op-codes) that the GAYA Virtual Machine (GVM) executes, guiding the GVM through the required actions during smart contract operations.

<br>


---

# 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://gaya-blockchain.gitbook.io/gaya-blockchain/technical-overview/data-structures.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.
