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

# 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.
