> 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/sung-khuen.md).

# ขั้นสูง

- [ประมาณค่า Gas](https://docs.chiliz.com/th/phatthana/sung-khuen/kham-nun-gas.md): ประมาณค่าธรรมเนียม gas ของธุรกรรมบน Chiliz Chain โดยใช้ cURL/RPC, Blocknative Gas Network หรือ ethers.js พร้อมคำแนะนำค่าธรรมเนียมขั้นต่ำ (base 2,501 gwei, priority 1 gwei)
- [ดึงราคา On-Chain แบบ Feed](https://docs.chiliz.com/th/phatthana/sung-khuen/on-chain-raka-feed.md): อ่านราคาสินทรัพย์และ Fan Token แบบสดตรงภายใน smart contract ของคุณ
- [การอ่านราคา](https://docs.chiliz.com/th/phatthana/sung-khuen/on-chain-raka-feed/kan-an-raka.md): ค้นหาที่อยู่ PriceFeed contract เชื่อมต่อโดยใช้ Chainlink interface และอ่านราคาปัจจุบันพร้อมการตรวจสอบที่ถูกต้อง
- [แนวทางปฏิบัติที่ดี](https://docs.chiliz.com/th/phatthana/sung-khuen/on-chain-raka-feed/withikan-thi-di.md): รูปแบบการตรวจสอบ Health status API การตรวจสอบความเก่า และ checklist การรวมระบบ สำหรับการใช้งาน Chiliz Chain price feeds อย่างปลอดภัย
- [ราคา USD ของ Fan Token](https://docs.chiliz.com/th/phatthana/sung-khuen/raka-fan-token.md): รับราคา USD แบบเรียลไทม์สำหรับ Fan Tokens บน Chiliz Chain โดยใช้ oracle network ของ Pyth พร้อม price feed กว่า 420 รายการ รวมถึง $CHZ, $PSG, $BAR, $CITY และ Fan Token ชื่ออื่นๆ
- [รวม Socios.com Wallet เข้า dApp](https://docs.chiliz.com/th/phatthana/sung-khuen/socios-wallet.md): รวม Socios.com Wallet เข้ากับขั้นตอน Connect Wallet ใน dApp บน Chiliz Chain ของคุณโดยใช้ Reown AppKit หรือ WalletConnect พร้อม chain ID 88888 (Mainnet) และ 88882 (Spicy Testnet)
- [ติดตามการโอน Fan Token](https://docs.chiliz.com/th/phatthana/sung-khuen/tit-tam-fan-token.md): ติดตามประวัติการโอน Fan Token บน Chiliz Chain โดยใช้ subgraphs กับ The Graph หรือ Goldsky: การ index event, GraphQL queries, และการสร้าง token dashboard
- [แจ้งเตือน Telegram สำหรับ Fan Token](https://docs.chiliz.com/th/phatthana/sung-khuen/telegram-fan-token.md): ตั้งค่าบอท Telegram สำหรับติดตาม Fan Token โดยใช้ indexer ของ Envio เพื่อดักจับ event การโอนบน Chiliz Chain และแจ้งเตือนเมื่อมีการโอนเกินเกณฑ์ที่กำหนด
- [ทำงานกับ NFT](https://docs.chiliz.com/th/phatthana/sung-khuen/nft.md): คู่มือ NFT แบบครบวงจรสำหรับ Chiliz Chain: การเลือก ERC-721 หรือ ERC-1155 contracts, การโฮสต์บน IPFS, การสร้าง (NFT) ด้วย Viem/thirdweb/Rarible และการลิสต์บน OKX
- [เตรียมไฟล์ NFT](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/riang-nft.md): เตรียมไฟล์ภาพและไฟล์ metadata JSON ตามมาตรฐาน ERC-721/ERC-1155 สำหรับการสร้าง NFT บน Chiliz Chain ครอบคลุมรูปแบบภาพและมาตรฐาน metadata schema
- [เลือก NFT Contract ที่เหมาะสม](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/rian-nft-contract.md): เลือกระหว่าง ERC-721 (ของสะสมที่ไม่ซ้ำกัน) และ ERC-1155 (token หลายรุ่น) สำหรับโปรเจกต์ NFT บน Chiliz Chain พร้อมหมายเหตุเกี่ยวกับ extension สำหรับค่าลิขสิทธิ์และการอัปเดต metadata
- [Host NFT บน IPFS](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/host-ipfs.md): โฮสต์ไฟล์มีเดียและ metadata JSON ของ NFT บน IPFS เพื่อการจัดเก็บ tokenURI แบบถาวรและกระจายศูนย์ โดยใช้ Pinata หรือผู้ให้บริการ IPFS อื่น ๆ สำหรับโปรเจกต์ NFT บน Chiliz Chain
- [Mint NFT ด้วย thirdweb](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/mint-thirdweb.md): การสร้าง NFT บน Chiliz Chain ผ่าน dashboard (แบบไม่ต้องเขียนโค้ด) หรือ SDK ของ thirdweb พร้อมการอัปโหลด IPFS ในตัว สัญญาที่ผ่านการตรวจสอบแล้ว และการปรับใช้คอลเลกชันแบบคลิกเดียว
- [Mint NFT ด้วย Rarible](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/mint-rarible.md): การสร้าง NFT บน Chiliz Chain โดยใช้ Rarible Multichain SDK พร้อม Pinata สำหรับโฮสต์ IPFS และ smart contract ERC-721 จาก OpenZeppelin ที่ปรับใช้แล้ว รวมถึงการสร้างคำสั่งขาย
- [Mint NFT ด้วย Viem](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/mint-viem.md): การสร้าง NFT บน Chiliz Chain ด้วยโปรแกรมโดยใช้ TypeScript กับ viem หรือ ethers.js, สัญญา ERC-721 ที่ปรับใช้บน Remix และ Pinata สำหรับการโฮสต์ IPFS
- [ลิสต์ NFT บน OKX](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/list-okx.md): ลิสต์และขาย NFT บน OKX NFT Marketplace ซึ่งรองรับ Chiliz Chain โดยตรง โดยต้องมีสัญญาที่ผ่านการยืนยันแล้วและ CHZ สำหรับค่าธรรมเนียม gas
- [ใช้งาน Omnichain Tokens](https://docs.chiliz.com/th/phatthana/sung-khuen/omnichain-tokens.md): คู่มือฉบับสมบูรณ์เกี่ยวกับมาตรฐาน LayerZero OFT และ ONFT บน Chiliz Chain: กลไก lock-and-mint, รูปแบบ OFT Adapter และการ bridge ระหว่าง EVM chains และ Solana
- [Bridge จาก Base ไป Chiliz Chain](https://docs.chiliz.com/th/phatthana/sung-khuen/omnichain-tokens/base-to-chiliz.md): ปรับใช้ OFT Adapter บน Base และ Native OFT บน Chiliz Chain โดยใช้ LayerZero v2 เพื่อ bridge token ERC-20 ที่มีอยู่แล้วจาก Base ไปยัง Chiliz Chain
- [Bridge จาก Chiliz Chain ไป Base](https://docs.chiliz.com/th/phatthana/sung-khuen/omnichain-tokens/chiliz-to-base.md): ปรับใช้ OFT Adapter บน Chiliz Chain และ Native OFT บน Base โดยใช้ LayerZero v2 เพื่อทำให้ token บน Chiliz Chain กลายเป็น omnichain บน Base
- [Bridge จาก Solana ไป Chiliz Chain](https://docs.chiliz.com/th/phatthana/sung-khuen/omnichain-tokens/solana-to-chiliz.md): ปรับใช้ OFT Adapter บน Solana และ Native OFT บน Chiliz Chain โดยใช้ LayerZero v2 เพื่อ bridge token จาก Solana ไปยัง Chiliz Chain
- [Bridge จาก Chiliz Chain ไป Solana](https://docs.chiliz.com/th/phatthana/sung-khuen/omnichain-tokens/chiliz-to-solana.md): ปรับใช้ OFT Adapter บน Chiliz Chain และ Native OFT บน Solana โดยใช้ LayerZero v2 เพื่อ bridge token จาก Chiliz Chain ไปยังเครือข่าย Solana
- [ใช้งาน Account Abstraction](https://docs.chiliz.com/th/phatthana/sung-khuen/account-abstraction.md): ใช้งาน account abstraction บน Chiliz Chain ด้วย AbstractJS และ MEE ของ Biconomy: ธุรกรรมแบบ gasless, ธุรกรรมแบบ batched และ cross-chain รวมถึง Smart Accounts เพื่อพัฒนาประสบการณ์ผู้ใช้ของ dApp
- [สร้างตัวเลขสุ่มบน on-chain](https://docs.chiliz.com/th/phatthana/sung-khuen/on-chain-random-numbers.md): สร้างตัวเลขสุ่มที่ปลอดภัยเชิงวิทยาการเข้ารหัสบน Chiliz Chain ด้วย Pyth Entropy (เหมาะสำหรับการ mint NFT, กลไกเกม และตลาดคาดการณ์)


---

# 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/sung-khuen.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.
