> For the complete documentation index, see [llms.txt](https://docs.velio.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.velio.xyz/documentation/zh-cn/security/on-chain-contracts.md).

# 链上合约

验证合约接收 ZK 证明与状态更新数据，依据目前已确认的状态进行验证。

验证合约接收 ZK 证明与状态更新数据，依据目前已确认的状态进行验证。只有验证通过，合约才接受新的账户状态根。资金合约则另行处理充值与提现相关流程。

1. **提交更新**：ZK 证明与状态数据
2. **合约验证**：依据目前状态核对
3. **接受新状态**：验证通过后更新状态根

{% hint style="info" %}
这里描述状态确认流程；资金操作由资金合约处理。
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.velio.xyz/documentation/zh-cn/security/on-chain-contracts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
