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

# ทำงานกับ NFT

{% hint style="success" %}
**NFT คืออะไร?**

ตามวิกิพีเดีย "Non-fungible token (NFT) คือตัวระบุดิจิทัลที่ไม่ซ้ำกัน ซึ่งถูกบันทึกไว้บน blockchain และใช้เพื่อรับรองความเป็นเจ้าของและความถูกต้องแท้จริง ไม่สามารถคัดลอก แทนที่ หรือแบ่งย่อยได้ ความเป็นเจ้าของ NFT ถูกบันทึกไว้บน blockchain และสามารถโอนโดยเจ้าของได้ ทำให้ NFT สามารถซื้อขายและแลกเปลี่ยนได้"

โดยพื้นฐานแล้ว NFT ประกอบด้วย:

* ไฟล์มีเดีย (รูปภาพ, วิดีโอ) ที่เข้าถึงได้ทางออนไลน์
* ไฟล์ metadata ที่แนบมา ซึ่งระบุที่อยู่เว็บที่เก็บไฟล์มีเดียนั้นไว้เป็นสำคัญ
* บล็อกบน blockchain ที่เก็บไฟล์ metadata พร้อมกับ smart contract ที่เน้น NFT ซึ่งมีเมธอดสำหรับการโต้ตอบกับ NFT

NFT บน Chiliz Chain เป็นไปตาม [มาตรฐาน EVM](https://ethereum.org/en/developers/docs/standards/) (เช่น: [ERC721](https://ethereum.org/en/developers/docs/standards/tokens/erc-721/), [ERC-1155](https://ethereum.org/en/developers/docs/standards/tokens/erc-1155/), [และอื่นๆ](https://ethereum.org/en/developers/docs/standards/#token-standards)) ซึ่งช่วยให้มีความสามารถในการทำงานร่วมกันระหว่างเครื่องมือและ marketplace ต่างๆ
{% endhint %}

{% hint style="success" %}
**การสร้าง (minting) NFT คืออะไร?**

การสร้าง NFT คือกระบวนการนำไฟล์ดิจิทัล (เช่น รูปภาพ วิดีโอ หรือเพลง) มาเปลี่ยนเป็น token บน on-chain: สินทรัพย์ดิจิทัลที่ยืนยันได้ ซึ่งสามารถถือครองและโอนได้
{% endhint %}

## ข้อกำหนดเบื้องต้น

มีสามสิ่งที่จำเป็นสำหรับคุณในการสร้าง NFT:

### 1. กระเป๋าเงิน Web3

เพื่อโต้ตอบกับ Chiliz Chain (Chiliz Chain Mainnet หรือ Spicy Testnet) คุณต้องมีที่อยู่กระเป๋าเงิน Web3 พร้อม CHZ บางส่วน CHZ คือ token ดั้งเดิมของ Chiliz Chain

{% hint style="success" %}
กระเป๋าเงิน Web3 ทำหน้าที่เป็นทั้งที่เก็บ token CHZ ของคุณ และเป็นลายเซ็นดิจิทัลเพื่ออนุมัติการดำเนินการบน on-chain
{% endhint %}

คุณสามารถใช้ [MetaMask](https://metamask.io/) หรือกระเป๋าเงิน Web3 อื่นๆ เมื่อทำงานบน Chiliz Chain:

{% content-ref url="/pages/YTognbbqRvkQotuukmj8" %}
[ใช้งาน MetaMask](/th/riang-ru/krapao-ngoen/metamask.md)
{% endcontent-ref %}

เมื่อติดตั้งแล้ว ให้ตั้งค่ากระเป๋าเงินของคุณให้ทำงานกับ Chiliz Chain:

[เชื่อมต่อโดยใช้ RPC](/th/phatthana/phuenthan/tho-chiliz-chain/tho-rpc.md)

อย่าลืมรับ token CHZ เพื่อจ่ายค่า gas fees บน Chiliz Chain Mainnet คุณสามารถซื้อ CHZ ได้จาก exchange ต่างๆ เช่น Binance, Coinbase, Bitpanda และอื่นๆ

เพื่อทดสอบความสามารถในการสร้าง NFT บน Chiliz Chain คุณควรใช้ Spicy Testnet พร้อม token CHZ สำหรับทดสอบ คุณสามารถรับ token ฟรีผ่าน testnet faucets:

{% content-ref url="/pages/y7HDC2TBdwvv53pjrCSt" %}
[รับ Token Testnet ฟรี](/th/phatthana/phuenthan/rap-token-testnet.md)
{% endcontent-ref %}

### 2. NFT smart contract ที่ปรับใช้แล้ว

ก่อนที่ไฟล์จะถูกสร้างเป็น NFT ได้ คุณต้องปรับใช้และยืนยัน NFT smart contract ที่สอดคล้องกันบน Chiliz Chain ก่อน นี่เป็นขั้นตอนสำคัญเพื่อให้มั่นใจในความโปร่งใสและเปิดใช้งานการโต้ตอบกับ contract ของคุณบน on-chain

{% content-ref url="/pages/uUgXGyOMEMh502ESegtb" %}
[เลือก NFT Contract ที่เหมาะสม](/th/phatthana/sung-khuen/nft/rian-nft-contract.md)
{% endcontent-ref %}

{% content-ref url="/pages/8HtGOK0wUg8tzq9mzDDR" %}
[Deploy Smart Contract](/th/phatthana/phuenthan/deploy-smart-contract.md)
{% endcontent-ref %}

{% content-ref url="/pages/xWLPjhumWNjqmyL6az1o" %}
[Verify Smart Contract](/th/phatthana/phuenthan/verify-smart-contract.md)
{% endcontent-ref %}

### 3. ตำแหน่งออนไลน์สำหรับไฟล์และ metadata NFT ของคุณ

ส่วนสำคัญอย่างหนึ่งของ NFT คือการทำให้มันเข้าถึงได้ทางออนไลน์สำหรับทุกคน วิธีหนึ่งคือการทำให้ไฟล์มีเดีย (รูปภาพ/วิดีโอ/ฯลฯ) และไฟล์ `metadata.json` ของมันเข้าถึงได้ผ่าน IPFS

{% content-ref url="/pages/F0PzWD83jQ9pCVyxPZAo" %}
[เตรียมไฟล์ NFT](/th/phatthana/sung-khuen/nft/riang-nft.md)
{% endcontent-ref %}

{% content-ref url="/pages/UdGK6hxn11NlNgpI8fRq" %}
[Host NFT บน IPFS](/th/phatthana/sung-khuen/nft/host-ipfs.md)
{% endcontent-ref %}

## การสร้าง NFT

มีหลายวิธีในการสร้าง NFT บน Chiliz Chain ขึ้นอยู่กับความต้องการของคุณ\
หน้าเหล่านี้มุ่งหมายที่จะนำเสนอวิธีที่แนะนำมากที่สุด

{% content-ref url="/pages/7aZX9HKKrDVsRBOj68SR" %}
[Mint NFT ด้วย Viem](/th/phatthana/sung-khuen/nft/mint-viem.md)
{% endcontent-ref %}

{% content-ref url="/pages/rItmsam1mqoi9HTNRMo3" %}
[Mint NFT ด้วย thirdweb](/th/phatthana/sung-khuen/nft/mint-thirdweb.md)
{% endcontent-ref %}

{% content-ref url="/pages/Ci66dJbvI60g83C5PDGU" %}
[Mint NFT ด้วย Rarible](/th/phatthana/sung-khuen/nft/mint-rarible.md)
{% endcontent-ref %}

## การลิสต์ NFT เพื่อขาย

สำหรับนักพัฒนาและผู้สร้าง การ "โฮสต์" NFT อย่างมีประสิทธิภาพหมายถึงการลิสต์สินทรัพย์ของคุณบน NFT marketplace ออนไลน์เพื่อให้มองเห็นได้ ซื้อขายได้ และถูกจัดทำดัชนีสำหรับผู้ใช้

{% content-ref url="/pages/X2bkg7selSfDiawGcj7G" %}
[ลิสต์ NFT บน OKX](/th/phatthana/sung-khuen/nft/list-okx.md)
{% endcontent-ref %}


---

# 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/nft.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.
