# Order Validation

The goal of the **Order Validation** process in the Yamata system is to ensure that all transactions are processed fairly, transparently, and without errors, ensuring that orders processed by the off-chain sequencer align with the on-chain records.&#x20;

<figure><img src="/files/Cv3uAKLyNVOhgu3hTmiS" alt=""><figcaption><p>Order Validation Flow</p></figcaption></figure>

1. [**Introduction to Validating Nodes (VNs)**](/yamata-nodes/order-validation/what-are-validating-nodes-vns.md) **-** who are responsible for ensuring that all transactions are processed accurately and fairly. They monitor both the off-chain sequencer and on-chain data to detect any discrepancies.
2. [**Order Matching**](/yamata-nodes/order-validation/order-matching.md) **-** VNs validate that orders processed by the off-chain sequencer match their corresponding on-chain records.&#x20;
3. [**Challenge Process**](/yamata-nodes/order-validation/challenge-process.md)
   * [**Discrepancy Detection**](/yamata-nodes/order-validation/challenge-process/discrepancy-detection.md) between the off-chain and on-chain data, or any irregularity in the order processing.
   * [**Challenge Initiation**](/yamata-nodes/order-validation/challenge-process/challenge-initiation.md) requires the VN to provide clear **proof** to justify the initiated challenge.
   * [**Challenge Approval**](/yamata-nodes/order-validation/challenge-process/challenge-approval.md)**,** where the challenge is raised by 5 VNs and the process moves to further validation and defense.
4. [**Voting & Sequencer Defense**](/yamata-nodes/order-validation/voting-and-sequencer-defense.md) **-** where VNs vote on whether the sequencer was wrong. If a majority (½ + 1) agrees, the challenge succeeds, and the sequencer is penalized. If the sequencer can defend itself successfully, the challenge is dismissed, and the VNs are penalized for raising an invalid challenge.


---

# Agent Instructions: 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:

```
GET https://docs.yamata.io/yamata-nodes/order-validation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
