> 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/jp/kaihatsu/joukyu/nft/nft-contract-sentaku.md).

# 適切な NFT contract を選ぶ

ファイルをNFTとしてmintする前に、Chiliz Chain上で対応するNFT smart contractをdeployしverifyする必要があります。これは透明性を確保し、コントラクトとのオンチェーンでのやり取りを可能にするための重要なステップです。

## **どのsmart contractを使うべきか？**

ブロックチェーンの世界には数多くのsmart contractが存在し、NFTのmintにどれが適しているのかは一目では分かりにくいかもしれません。

必要なsmart contractは、想定しているNFTプロジェクトの種類によって異なります。

* ユニークなアイテム1点：\
  [ERC-721](https://eips.ethereum.org/EIPS/eip-721) NFTコントラクトを使い、1点のアイテムをmintします。
* 複数のユニークなアイテム：\
  [ERC-721](https://eips.ethereum.org/EIPS/eip-721) NFTコントラクトを使い、アイテムのコレクションをmintします。
* 同一アイテムの複数コピー：\
  [ERC-1155](https://eips.ethereum.org/EIPS/eip-1155) Multi Tokenコントラクトを使います（1つのアイテムに複数のインスタンスを持たせられます）。
* 複数アイテムの複数コピー：\
  同じく[ERC-1155](https://eips.ethereum.org/EIPS/eip-1155) Multi Tokenコントラクトを使います。

異なる用途向けの他のsmart contract（コントラクトの拡張やバリアントとして知られるもの。たとえばRoyalties向けの[ERC-2981](https://eips.ethereum.org/EIPS/eip-2981)、Metadata更新イベント向けの[ERC-4906](https://eips.ethereum.org/EIPS/eip-4906)、lazy-minting向けのERC-721 Dropなど）もありますが、今のところはERC-721/1155について知っていれば十分です。

{% hint style="warning" %}
**自分でsmart contractを書くべきか？**

コードを完全にコントロールしたい場合であっても、ERC‑721コントラクトをゼロから書くことはお勧めしません。信頼できるコントラクトライブラリの、実戦で鍛えられた監査済みのコントラクトを使うべきです。
{% endhint %}

NFTをmintするコントラクトを入手する最も安全で一般的な方法は、OpenZeppelinのものを使うことです。たとえば[彼らのERC-721コントラクト](https://docs.openzeppelin.com/contracts/5.x/erc721)などです。これにより車輪の再発明を避け、よくあるセキュリティの脆弱性を防ぐのに役立ちます。

{% hint style="success" %}
[OpenZeppelin](https://www.openzeppelin.com/)は、安全なdAppを構築するためのオープンソースプラットフォームです。

複数のセキュリティおよび監査サービスに加えて、誰でも自分のプロジェクトで自由に使える[コミュニティによって検証されたsmart contractのライブラリ](https://docs.openzeppelin.com/contracts/)を提供しています。

そのため、OpenZeppelinのコントラクトは業界標準とみなされており、安心して頼ることができます。
{% endhint %}

## NFT Smart Contractのdeployとverify

Chiliz Chainへのsmart contractのdeployには、[Remix IDE](https://remix.ethereum.org/)や[thirdweb](https://thirdweb.com/)といった信頼できるプラットフォーム、あるいは[Hardhat](https://hardhat.org/)を直接使うことができます。

deployが完了したら、開発者ツールやプラットフォームがそのABI（Application Binary Interface）を読み取ってやり取りできるよう、コントラクトをblock explorer上でverifyする必要があります。

NFTコントラクトをdeployしてからverifyするには、以下のガイドに従ってください。

[コントラクトのデプロイと検証](/jp/hajimeni/kaihatsusha-toolbox/contract-deploy-verify.md)

{% hint style="warning" %}
コントラクトは必ずChiliz Chainのblock explorerのいずれかでverifyしてください！\
[Smart Contract を verify する](/jp/kaihatsu/kihon/smart-contract-verify.md)

verifyされたコントラクトのみが、Socios.comおよびSocios.com Walletと互換性のあるNFTをmintできます。
{% endhint %}

繰り返しになりますが、Chiliz ChainおよびSpicy Testnetの正しいネットワーク情報を使うよう注意してください。

[Mainnet と Testnet に接続する](/jp/hajimeni/kaihatsusha-toolbox/mainnet-testnet-setsuzoku.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:

```
GET https://docs.chiliz.com/jp/kaihatsu/joukyu/nft/nft-contract-sentaku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
