> 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/kihon/smart-contract-verify/chiliscan-verify.md).

# Chiliscan で verify する

[Chiliscan](https://chiliscan.com/) は Routescan が提供するサービスです。そのため、日常的な利用については [Routescan のドキュメント](https://routescan.io/documentation) を参照できます。

Routescan は、Chiliz Chain 上で smart contract を verify するためのいくつかの方法を提供しています。

* ほとんどの contract の場合: Chiliscan の verification フォームを使用する
* より複雑な contract の場合: Hardhat などのコマンドラインツールを使用する
* シンプルな contract の場合: API を使用する

Routescan の [contract verification に関するドキュメント](https://info.routescan.io/en/collections/14599808-contract-verification) を参照してください。

## Chiliscan の verification フォームを使用する

Chiliscan は、Chiliz Mainnet 向けの contract verification インターフェースを <https://chiliscan.com/verifycontract> で提供しています。\
こちらにもドキュメントがあります: <https://info.routescan.io/en/articles/11991234-verifying-contracts-ui>

{% hint style="info" %}
このインターフェースを使って Spicy Testnet 上の contract を verify することもできます:\
<https://testnet.chiliscan.com/verifycontract>
{% endhint %}

{% hint style="info" %}
複数ファイルからなる contract の場合は、アップロードする前にコードが flatten されていることを確認してください。

例えば Remix IDE を使用している場合は、File Explorer 内でコンパイル済みの `contract-XYZ.sol` contract ファイルを右クリックし、「Flatten」オプションを選択できます。\
その後、生成されたファイル（`contract-XYZ_flattened.sol` という名前）をダウンロードして、verification フォームにアップロードします。
{% endhint %}

手順:

1. 「Contract address」フィールドに、verify したい smart contract のアドレスを入力します。\
   \&#xNAN;*状況に応じて、その contract がまだ Chiliz Chain 上に存在しない、またはすでに verify 済みであるとツールが表示する場合があります。そのどちらでもない場合は、追加のインターフェース要素が表示されます。*<br>

   <figure><img src="/files/KKsdoHE1XhNUlJggvHEF" alt="" width="375"><figcaption></figcaption></figure>
2. 「Import from Solidity」をクリックし、フォームを正しく入力します:
   1. compiler version として「0.8.24+xxx」を選択します。
   2. EVM version として「Shanghai」を選択します。
   3. contract ファイルをアップロードします。
3. 「Verify Contract」をクリックします。

成功すると、contract は verify 済みとして明確にラベル付けされ、特に緑色のチェックマークが表示されます。block explorer は contract のソースコードを表示し、すべてのインタラクティブ機能を有効にします。

<figure><img src="/files/TZmfjOKwA6hz64GrCZN1" alt=""><figcaption></figcaption></figure>

エラーが発生した場合は、インターフェースが対応するエラーメッセージを表示してガイドします。

## コマンドラインツールを使用する

Routescan 自身のドキュメントには、verification にコマンドラインツールを使用する方法に関する [詳細なガイド](https://info.routescan.io/en/collections/14599808-contract-verification) が掲載されています。これは、開発環境ですでに contract verification を自動化したい場合に特に役立ちます。

以下を使った deploy と verify に関するガイドを読むことができます:

* [Hardhat v2](https://info.routescan.io/en/articles/11991333-deploying-and-verifying-contracts-hardhat)
* [Hardhat v3](https://info.routescan.io/en/articles/12867834-deploying-and-verifying-contracts-hardhat-v3)
* [Foundry](https://info.routescan.io/en/articles/11992459-deploying-and-verifying-contracts-foundry)

## Routescan の API を使用する

Routescan には専用の contract API があり、これを使って contract を verify できます:

{% embed url="<https://routescan.io/documentation/api/etherscan-like/contracts>" %}

よりシンプルな smart contract を扱っている場合は、Routescan が提供するガイドが Paragraph.com で利用できます。このガイドは、複雑なビルドプロセスを必要としない contract を準備して verify する手順を案内します。

* [A Guide to Easily Verify Your Smart Contract Programmatically Using Routescan's API](https://paragraph.com/@routescan-io/a-guide-to-easily-verify-your-smart-contract-programmatically-using-routescan-s-api) にアクセスしてください。

補足: これは contract が flatten されていることを必要とします。


---

# 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/kihon/smart-contract-verify/chiliscan-verify.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.
