> 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/th/phatthana/phuenthan/verify-smart-contract.md).

# Verify Smart Contract

{% hint style="success" %}
หลังจากสร้าง smart contract แล้ว **จำเป็น**ต้องยืนยันมัน\
มีเพียง **คุณ**เท่านั้นที่สามารถทำได้ และควรดำเนินการทันทีหลังจากที่ contract ถูกปรับใช้แล้ว
{% endhint %}

การยืนยัน smart contract ช่วยให้คุณยืนยันได้ว่า source code ของ contract ตรงกับที่อยู่ contract ที่ระบุบน blockchain นี่เป็นสิ่งสำคัญมากสำหรับความโปร่งใสและความน่าเชื่อถือ โดยเฉพาะในโลกของ blockchain ที่กระจายศูนย์

เมื่อคุณได้ปรับใช้ smart contract บน Chiliz Chain แล้ว คุณสามารถยืนยันได้โดยใช้ block explorer เช่น [Chiliscan](https://chiliscan.com/) (โดย [Routescan](https://routescan.io/)) หรือ [Chiliz Block Explorer](https://scan.chiliz.com/) (โดย [Blockscout](https://www.blockscout.com/))

{% content-ref url="/pages/UgrB1phuTIs9HZPjrcqZ" %}
[Verify ด้วย Chiliscan](/th/phatthana/phuenthan/verify-smart-contract/verify-chiliscan.md)
{% endcontent-ref %}

{% content-ref url="/pages/eqfW8k99odp37aPoKaGq" %}
[Verify ด้วย Chiliz Block Explorer](/th/phatthana/phuenthan/verify-smart-contract/verify-block-explorer.md)
{% endcontent-ref %}

คุณยังสามารถยืนยัน contract ผ่าน command line ได้อีกด้วย:

{% content-ref url="/pages/m2IfUKgcaRZBVEjQH2nT" %}
[Verify ด้วย Hardhat](/th/phatthana/phuenthan/verify-smart-contract/verify-hardhat.md)
{% endcontent-ref %}

โปรดทราบว่าการตรวจสอบ smart contract ที่ปรับใช้ของคุณอาจทำได้ง่ายขึ้นโดยใช้เวอร์ชัน flatten ของมัน วิธีการมีดังนี้:

{% content-ref url="/pages/pmsahLUZsDbLZqJ9GCNQ" %}
[Flatten Smart Contract](/th/phatthana/phuenthan/verify-smart-contract/flatten.md)
{% endcontent-ref %}

ไม่ว่าในกรณีใด ควรปฏิบัติตามแนวทางที่ดีที่สุดเสมอ!

{% content-ref url="/pages/aaAEzLfmZn7UXKgCd65y" %}
[แนวทางปฏิบัติที่ดีในการ Verify](/th/phatthana/phuenthan/verify-smart-contract/best-practices.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 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://docs.chiliz.com/th/phatthana/phuenthan/verify-smart-contract.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.
