> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/vi/phat-trien/co-ban/xac-minh-smart-contract.md).

# Xác minh Smart Contract

Xác minh các hợp đồng Chiliz Chain đã triển khai qua Chiliscan (Routescan) hoặc Chiliz Block Explorer (Blockscout), với các tùy chọn Hardhat CLI và flattening.

{% hint style="success" %}
Sau khi tạo một smart contract, việc xác minh nó là **bắt buộc**.\
Chỉ **bạn** mới có thể thực hiện điều này, và bạn nên làm ngay sau khi hợp đồng được triển khai.
{% endhint %}

Xác minh một smart contract cho phép bạn xác nhận rằng mã nguồn của hợp đồng tương ứng với một địa chỉ hợp đồng cụ thể trên blockchain. Đây là điều thiết yếu để đảm bảo tính minh bạch và độ tin cậy, đặc biệt trong thế giới phi tập trung của blockchain.

Sau khi bạn đã triển khai smart contract của mình trên Chiliz Chain, bạn có thể xác minh nó bằng cách sử dụng một block explorer, chẳng hạn như [Chiliscan](https://chiliscan.com/) (bởi [Routescan](https://routescan.io/)) hoặc [Chiliz Block Explorer](https://scan.chiliz.com/) (bởi [Blockscout](https://www.blockscout.com/)).

{% content-ref url="/pages/zntxlDK4mEkCE7D59Isn" %}
[Xác minh với Chiliscan](/vi/phat-trien/co-ban/xac-minh-smart-contract/xac-minh-voi-chiliscan.md)
{% endcontent-ref %}

{% content-ref url="/pages/09oKPaeyClQCxBwfryMP" %}
[Xác minh với Chiliz Block Explorer](/vi/phat-trien/co-ban/xac-minh-smart-contract/xac-minh-voi-block-explorer.md)
{% endcontent-ref %}

Bạn cũng có thể xác minh hợp đồng của mình qua dòng lệnh:

{% content-ref url="/pages/qNvGmClLV4SPucA6gzxh" %}
[Xác minh với Hardhat](/vi/phat-trien/co-ban/xac-minh-smart-contract/xac-minh-voi-hardhat.md)
{% endcontent-ref %}

Lưu ý rằng đôi khi sẽ dễ dàng hơn cho bạn khi xác thực smart contract đã triển khai bằng cách sử dụng phiên bản đã được làm phẳng (flattened) của nó. Đây là cách thực hiện:

{% content-ref url="/pages/lRI6tnqMhnj9plhWqMjR" %}
[Flatten một Smart Contract](/vi/phat-trien/co-ban/xac-minh-smart-contract/flatten-smart-contract.md)
{% endcontent-ref %}

Trong mọi trường hợp, hãy luôn tuân theo các thực hành tốt nhất!

{% content-ref url="/pages/EDpeyUqzA2ohfQWLh5RS" %}
[Thực hành tốt nhất khi xác minh](/vi/phat-trien/co-ban/xac-minh-smart-contract/thuc-hanh-tot-nhat.md)
{% endcontent-ref %}


---

# 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.chiliz.com/vi/phat-trien/co-ban/xac-minh-smart-contract.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.
