> 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/tho-chiliz-chain/tho-rpc.md).

# เชื่อมต่อด้วย RPC

Chiliz พร้อมให้บริการผ่าน Mainnet สำหรับโปรเจกต์ที่ใช้งานจริงของคุณ และมี Testnet สำหรับการทดสอบ Chiliz Testnet มีชื่อว่า Spicy Testnet

{% hint style="success" %}
RPC endpoints สาธารณะเหล่านี้ใช้งานได้ฟรีและใช้ร่วมกัน จึงมาพร้อมกับ rate limit ขีดจำกัดที่แน่นอนขึ้นอยู่กับผู้ให้บริการและว่าคุณได้ลงทะเบียนบัญชีกับผู้ให้บริการนั้นหรือไม่ endpoints สาธารณะ (ไม่ต้องมีบัญชี) เหมาะสำหรับการพัฒนาและการทดสอบ ขณะที่ทราฟฟิกสำหรับการใช้งานจริงจะได้รับบริการที่ดีกว่าด้วยการลงทะเบียนกับผู้ให้บริการเพื่อรับขีดจำกัดที่สูงขึ้น หรือ [รันโหนดของคุณเอง](/th/phatthana/phuenthan/tho-chiliz-chain/run-node.md)

หากคุณถึงขีดจำกัด ให้เพิ่มการหน่วงเวลาสั้นๆ ระหว่างคำขอ (ตั้งแต่ 1 วินาทีถึง 1 นาที ขึ้นอยู่กับความต้องการของคุณ) และใช้ exponential backoff เมื่อเกิดข้อผิดพลาด แทนที่จะลองใหม่ทันที
{% 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 %}

ที่นั่นคุณจะพบ URL ของ endpoint สำหรับ Mainnet และ Testnet, Chain ID, URL ของ explorer และอื่นๆ

{% hint style="info" %}
**เกี่ยวกับ Scoville Testnet**

ในเดือนพฤษภาคม 2023 เราได้แทนที่ Scoville Testnet ด้วย Spicy Testnet

นักพัฒนาทุกคนที่ได้ปรับใช้หรือวางแผนจะปรับใช้บน Scoville Testnet จะต้องปรับใช้การทดสอบบน Spicy Testnet แทน เนื่องจาก Spicy Testnet จะได้รับการอัปเดตอยู่เสมอเพื่อสะท้อน Chiliz Chain ใหม่โดยตรง
{% endhint %}

สำหรับข้อมูลเกี่ยวกับวิธีเชื่อมต่อกระเป๋าเงินเฉพาะกับ Chiliz Chain โปรดใช้คู่มือนี้: [https://github.com/chiliz-chain/docs/tree/master/th/learn/about-wallets/how-to-use-metamask/link-chiliz-chain-and-metamask.md](https://github.com/chiliz-chain/docs/tree/master/th/learn/about-wallets/how-to-use-metamask/link-chiliz-chain-and-metamask.md "mention")


---

# 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/tho-chiliz-chain/tho-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.
