> 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/ket-noi-voi-chiliz-chain/ket-noi-bang-rpc.md).

# Kết nối bằng RPC

Chiliz có sẵn thông qua một Mainnet cho các dự án production của bạn, và có một Testnet cho mục đích thử nghiệm. Testnet của Chiliz được gọi là Spicy Testnet.

{% hint style="success" %}
Các điểm cuối RPC công khai này miễn phí và được dùng chung, nên chúng đi kèm với rate limit. Giới hạn cụ thể phụ thuộc vào nhà cung cấp và việc bạn có đăng ký tài khoản với họ hay không: các điểm cuối công khai (không cần tài khoản) phù hợp cho việc phát triển và thử nghiệm, trong khi lưu lượng production được phục vụ tốt hơn bằng cách đăng ký với một nhà cung cấp để có giới hạn cao hơn, hoặc [chạy node của riêng bạn](/vi/phat-trien/co-ban/ket-noi-voi-chiliz-chain/chay-mot-node-chiliz-chain.md).

Nếu bạn đạt đến giới hạn, hãy thêm một khoảng trễ ngắn giữa các request (từ 1 giây đến 1 phút tùy theo nhu cầu của bạn) và sử dụng exponential backoff khi gặp lỗi thay vì thử lại ngay lập tức.
{% endhint %}

{% tabs %}
{% tab title="Chiliz Chain Mainnet" %}

<table><thead><tr><th width="253">Parameter</th><th width="346">Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Chiliz Chain</td></tr><tr><td>RPC endpoint</td><td>Recommended:<br><a href="https://rpc.ankr.com/chiliz">https://rpc.ankr.com/chiliz</a><br><br>Alternatives:<br><a href="https://chiliz-mainnet.gateway.tatum.io">https://chiliz-mainnet.gateway.tatum.io</a><br><a href="https://chiliz-rpc.publicnode.com">https://chiliz-rpc.publicnode.com</a></td></tr><tr><td>RPC Websocket</td><td>wss://chiliz-rpc.publicnode.com</td></tr><tr><td>Chain ID</td><td>88888</td></tr><tr><td>Currency Symbol</td><td>CHZ</td></tr><tr><td>Chiliz Block Explorer URL</td><td>Recommended:<br><a href="https://chiliscan.com">https://chiliscan.com</a><br><br>Alternative:<br><a href="https://scan.chiliz.com">https://scan.chiliz.com</a></td></tr></tbody></table>
{% endtab %}

{% tab title="Spicy Testnet" %}

<table><thead><tr><th width="253">Parameter</th><th width="312">Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Spicy Testnet</td></tr><tr><td>RPC endpoint</td><td>Recommended:<br><a href="https://spicy-rpc.chiliz.com/">https://spicy-rpc.chiliz.com/</a><br><br>Alternatives:<br><a href="https://chiliz-testnet.gateway.tatum.io">https://chiliz-testnet.gateway.tatum.io</a><br><a href="https://chiliz-spicy-rpc.publicnode.com">https://chiliz-spicy-rpc.publicnode.com</a></td></tr><tr><td>RPC Websocket</td><td>Recommended:<br>wss://spicy-rpc-ws.chiliz.com/<br><br>Alternative:<br>wss://chiliz-spicy-rpc.publicnode.com</td></tr><tr><td>Chain ID</td><td>88882</td></tr><tr><td>Currency Symbol</td><td>CHZ</td></tr><tr><td>Spicy Block Explorer URL</td><td><p>Recommended:<br><a href="https://testnet.chiliscan.com/">https://testnet.chiliscan.com/</a></p><p><br>Alternative:<br><a href="https://spicy-explorer.chiliz.com/">https://spicy-explorer.chiliz.com/</a></p></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

Tại đó bạn sẽ tìm thấy các URL điểm cuối Mainnet và Testnet, Chain ID, URL explorer, v.v.

{% hint style="info" %}
**Về Scoville Testnet**

Vào tháng 5 năm 2023, chúng tôi đã thay thế Scoville Testnet bằng Spicy Testnet.

Tất cả các nhà phát triển đã triển khai hoặc dự định triển khai trên Scoville Testnet phải triển khai các thử nghiệm của họ trên Spicy Testnet thay thế, vì nó sẽ được giữ cập nhật để phản ánh trực tiếp Chiliz Chain mới.
{% endhint %}

Để biết thông tin về cách kết nối các ví cụ thể với Chiliz Chain, vui lòng sử dụng hướng dẫn này: [link-chiliz-chain-and-metamask.md](/vi/phat-trien/co-ban/su-dung-metamask/lien-ket-chiliz-chain-voi-metamask.md).


---

# 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/phat-trien/co-ban/ket-noi-voi-chiliz-chain/ket-noi-bang-rpc.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.
