> 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/bat-dau-nhanh/dia-chi-smart-contract.md).

# Địa chỉ Smart Contract

Khi xây dựng trên Chiliz Chain, bạn sẽ cần tích hợp một số chức năng được cung cấp thông qua các smart contract của chúng tôi. Trang này cung cấp mọi thứ bạn cần.

## Địa chỉ hợp đồng Chiliz Chain

{% hint style="info" %}
Các địa chỉ giống nhau dù bạn đang làm việc trên Chiliz Chain Mainnet hay trên Spicy Testnet.
{% endhint %}

{% hint style="warning" %}
Hãy đảm bảo luôn sử dụng đúng Chain ID trong code của bạn:

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

| Hợp đồng                                                       | Địa chỉ hợp đồng                           |
| -------------------------------------------------------------- | ------------------------------------------ |
| Staking                                                        | 0x0000000000000000000000000000000000001000 |
| Slashing Indicator                                             | 0x0000000000000000000000000000000000001001 |
| SystemReward                                                   | 0x0000000000000000000000000000000000001002 |
| StakingPool (bao bọc Staking, dùng bởi người dùng, dApp, v.v.) | 0x0000000000000000000000000000000000007001 |
| Governance                                                     | 0x0000000000000000000000000000000000007002 |
| ChainConfig                                                    | 0x0000000000000000000000000000000000007003 |
| RuntimeUpgrade                                                 | 0x0000000000000000000000000000000000007004 |
| DeployerProxy                                                  | 0x0000000000000000000000000000000000007005 |
| Tokenomics                                                     | 0x0000000000000000000000000000000000007006 |
| <p>Multicall<br><em>(chỉ Mainnet)</em></p>                     | 0x0E6a1Df694c4be9BFFC4D76f2B936bB1A1df7fAC |

Ngoài ra, nhóm [Kayen Finance](https://www.kayen.finance/) và [FanX](https://app.fanx.xyz/) đã tạo các hợp đồng riêng để làm việc với DEX của họ:

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

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

## Địa chỉ hợp đồng Fan Token

### Danh sách Fan Tokens

Bạn có thể tìm thấy danh sách đầy đủ các token trên trang này:

[Địa chỉ Token Contract](/vi/bat-dau-nhanh/dia-chi-token-contract.md)

### Hợp đồng Fan Token staking

Để thực hiện Fan Token staking, bạn có thể sử dụng các địa chỉ sau trên Chiliz Chain Mainnet:

| Hợp đồng       | Địa chỉ hợp đồng                           |
| -------------- | ------------------------------------------ |
| Proxy          | 0x5ff7f9724fd477d9a07dcdb894d0ca7f8fae1501 |
| Implementation | 0xD1bAfa7A246f5685cd22A563FD20fb164fAF0A4c |

## Địa chỉ hợp đồng Pepper

[Token cộng đồng $PEPPER](https://www.peppercoin.com/) có bộ địa chỉ riêng trên Chiliz Chain Mainnet:

| Hợp đồng       | Địa chỉ hợp đồng                           |
| -------------- | ------------------------------------------ |
| Pepper Factory | 0xb06709919e0279fC7e01bfBc4Cead2dD99F74Ca8 |
| Pepper Staking | 0x5cA4C88339D89B2547a001003Cca84F62F557A72 |

## Địa chỉ hợp đồng LayerZero

Chiliz Chain triển khai [giao thức LayerZero](https://layerzero.network/) để biến Fan Token thành omnichain.

{% tabs %}
{% tab title="Chiliz Chain Mainnet" %}
Layer Zero Endpoint ID (`eid`) cho Chiliz Chain Mainnet: `30409`.

| Hợp đồng                                                       | Địa chỉ hợp đồng                           |
| -------------------------------------------------------------- | ------------------------------------------ |
| 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`) cho Spicy Testnet: `40440`.

| Hợp đồng                                            | Địa chỉ hợp đồng                           |
| --------------------------------------------------- | ------------------------------------------ |
| EndpointV2                                          | 0x3aCAAf60502791D199a5a5F0B173D78229eBFe32 |
| sendUln302                                          | 0x45841dd1ca50265Da7614fC43A361e526c0e6160 |
| receiveUln302                                       | 0xd682ECF100f6F4284138AA925348633B0611Ae21 |
| <p>blockedMessageLib<br>Blocked Message Library</p> | 0xa229b65cc2191bf60bc24efcda3487d7b5c0c9f0 |
| executor                                            | 0x701f3927871EfcEa1235dB722f9E608aE120d243 |
| {% endtab %}                                        |                                            |
| {% endtabs %}                                       |                                            |

Bạn có thể kiểm tra lại thông tin đó trong tài liệu LayerZero:

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

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

Nhóm LayerZero cũng cung cấp hướng dẫn nhanh để mint và chuyển Omnichain Fungible Token (OFT) giữa Chiliz Mainnet và bất kỳ chain được hỗ trợ nào khác:

{% 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/vi/bat-dau-nhanh/dia-chi-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.
