> 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/rerm-ton/that-yu-smart-contract.md).

# ที่อยู่ Smart Contract

เมื่อพัฒนาบน Chiliz Chain คุณจะต้องผสานรวมฟังก์ชันการทำงานบางอย่างที่ให้บริการผ่าน smart contract ของเรา หน้านี้รวบรวมทุกสิ่งที่คุณต้องการไว้ครบถ้วน

## ที่อยู่ contract บน Chiliz Chain

{% hint style="info" %}
ที่อยู่เหล่านี้เหมือนกันไม่ว่าคุณจะทำงานบน Chiliz Chain Mainnet หรือ Spicy Testnet
{% endhint %}

{% hint style="warning" %}
โปรดตรวจสอบให้แน่ใจว่าใช้ Chain ID ที่ถูกต้องในโค้ดของคุณเสมอ:

* Chiliz Chain Mainnet: `88888`
* Spicy Testnet: `88882`
  {% endhint %}

| Contract                                                  | Contract Address                           |
| --------------------------------------------------------- | ------------------------------------------ |
| Staking                                                   | 0x0000000000000000000000000000000000001000 |
| Slashing Indicator                                        | 0x0000000000000000000000000000000000001001 |
| SystemReward                                              | 0x0000000000000000000000000000000000001002 |
| StakingPool (wrapper ของ Staking ใช้โดย users, dApps ฯลฯ) | 0x0000000000000000000000000000000000007001 |
| Governance                                                | 0x0000000000000000000000000000000000007002 |
| ChainConfig                                               | 0x0000000000000000000000000000000000007003 |
| RuntimeUpgrade                                            | 0x0000000000000000000000000000000000007004 |
| DeployerProxy                                             | 0x0000000000000000000000000000000000007005 |
| Tokenomics                                                | 0x0000000000000000000000000000000000007006 |
| <p>Multicall<br><em>(Mainnet เท่านั้น)</em></p>           | 0x0E6a1Df694c4be9BFFC4D76f2B936bB1A1df7fAC |

นอกจากนี้ ทีม [Kayen Finance](https://www.kayen.finance/) และ [FanX](https://app.fanx.xyz/) ยังได้สร้าง contract เฉพาะสำหรับใช้งานกับ DEX ของพวกเขา:

{% embed url="<https://kayen-finance.gitbook.io/docs/contracts/contracts>" %}

{% embed url="<https://fanx.gitbook.io/fanx-docs/contract/contracts>" %}

## ที่อยู่ contract ของ Fan Tokens

### รายการ Fan Tokens

คุณสามารถดูรายการ token ครบถ้วนได้ที่หน้านี้:

[ที่อยู่ Token Contract](/th/rerm-ton/that-yu-token-contract.md)

### Fan Token staking contracts

สำหรับ Fan Token staking คุณสามารถใช้ที่อยู่เหล่านี้บน Chiliz Chain Mainnet:

| Contract       | Contract Address                           |
| -------------- | ------------------------------------------ |
| Proxy          | 0x5ff7f9724fd477d9a07dcdb894d0ca7f8fae1501 |
| Implementation | 0xD1bAfa7A246f5685cd22A563FD20fb164fAF0A4c |

## ที่อยู่ Pepper contract

[token ชุมชน $PEPPER](https://www.peppercoin.com/) มีชุดที่อยู่เป็นของตัวเองบน Chiliz Chain Mainnet:

| Contract       | Contract Address                           |
| -------------- | ------------------------------------------ |
| Pepper Factory | 0xb06709919e0279fC7e01bfBc4Cead2dD99F74Ca8 |
| Pepper Staking | 0x5cA4C88339D89B2547a001003Cca84F62F557A72 |

## ที่อยู่ LayerZero contract

Chiliz Chain รองรับ[โปรโตคอล LayerZero](https://layerzero.network/) เพื่อทำให้ Fan Tokens เป็น omnichain

{% tabs %}
{% tab title="Chiliz Chain Mainnet" %}
Layer Zero Endpoint ID (`eid`) สำหรับ Chiliz Chain Mainnet: `30409`

| Contract                                                       | Contract Address                           |
| -------------------------------------------------------------- | ------------------------------------------ |
| EndpointV2                                                     | 0x6F475642a6e85809B1c36Fa62763669b1b48DD5B |
| sendUln302                                                     | 0xC39161c743D0307EB9BCc9FEF03eeb9Dc4802de7 |
| receiveUln302                                                  | 0xe1844c5D63a9543023008D332Bd3d2e6f1FE1043 |
| <p>blockedMessageLib<br><em>(Blocked Message Library)</em></p> | 0xc1ce56b2099ca68720592583c7984cab4b6d7e7a |
| executor                                                       | 0x4208D6E27538189bB48E603D6123A94b8Abe0A0b |
| Dead DVN                                                       | 0x6788f52439ACA6BFF597d3eeC2DC9a44B8FEE842 |
| {% endtab %}                                                   |                                            |

{% tab title="Spicy Testnet" %}
Layer Zero Endpoint ID (`eid`) สำหรับ Spicy Testnet: `40440`

| Contract                                            | Contract Address                           |
| --------------------------------------------------- | ------------------------------------------ |
| EndpointV2                                          | 0x3aCAAf60502791D199a5a5F0B173D78229eBFe32 |
| sendUln302                                          | 0x45841dd1ca50265Da7614fC43A361e526c0e6160 |
| receiveUln302                                       | 0xd682ECF100f6F4284138AA925348633B0611Ae21 |
| <p>blockedMessageLib<br>Blocked Message Library</p> | 0xa229b65cc2191bf60bc24efcda3487d7b5c0c9f0 |
| executor                                            | 0x701f3927871EfcEa1235dB722f9E608aE120d243 |
| {% endtab %}                                        |                                            |
| {% endtabs %}                                       |                                            |

คุณสามารถตรวจสอบข้อมูลดังกล่าวได้ในเอกสารของ LayerZero:

{% embed url="<https://docs.layerzero.network/v2/deployments/chains/chiliz>" %}

{% embed url="<https://docs.layerzero.network/v2/deployments/deployed-contracts?chains=chiliz>" %}

ทีม LayerZero ยังมีคู่มือเริ่มต้นใช้งานสำหรับการ mint และโอน Omnichain Fungible Token (OFT) ระหว่าง Chiliz Mainnet และ chain อื่น ๆ ที่รองรับ:

{% embed url="<https://docs.layerzero.network/v2/deployments/evm-chains/chiliz-mainnet-oft-quickstart>" %}


---

# 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/rerm-ton/that-yu-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.
