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

# Chain Layer

Personas are the new foundation of the on-chain economy, but they only matter if the infrastructure can keep up: fast, cheap, and secure.

So T-Rex must be designed from the ground up to support high-frequency engagement, Proof-of-Engagement rewards, and the Value Graph itself. By combining scale with security, Personas can become portable, verifiable, and usable in real time.

This is why T-Rex runs on its own Layer 2 blockchain, an EVM-compatible Optimistic Rollup that inherits Ethereum’s security while delivering the scale required for real-time Persona engagement.

<figure><img src="/files/NodTh3O2exnUQcxL5S9x" alt="" width="375"><figcaption></figcaption></figure>

**Execution Layer.** The T-Rex chain executes transactions off-chain under the optimistic assumption of validity. This means thousands of actions can be bundled into a single proof. So micro-rewards, in-game moves, and high-frequency social interactions all settle at negligible cost.

**Sequencer Layer.** But speed without fairness would collapse quickly. That is why ordering is handled by a decentralized network of sequencers. They batch and order transactions, so there is no single point of failure, and risks like front-running or MEV are reduced. Sequencers are rewarded transparently on-chain, keeping the process open and resilient.

**Data Availability Layer.** Yet ordering alone isn’t enough if the data itself disappears. So every transaction is published to a decentralized data availability layer. Anyone can reconstruct the full state of the chain, which guarantees permissionless validation, enables fast withdrawals, and lowers storage costs by separating execution from data.

**Fraud Proofs.** Even with all this, mistakes or fraud can still happen. That is why the system allows challenges during a dispute window. Fraud proofs inherit Ethereum’s security, so any invalid transaction can be overturned, keeping the system trust-minimized.

<figure><img src="/files/dr5NpYU4LzXSGJSkKjRG" alt=""><figcaption></figcaption></figure>

Together, these components make the T-Rex chain **scalable, inexpensive, and secure**, while still fully compatible with the Ethereum ecosystem. Developers can port existing contracts and dApps seamlessly, while gaining access to an environment optimized for high-frequency engagement.


---

# 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://trex-1.gitbook.io/trex/architecture/chain-layer.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.
