> 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/block-explorer-verify.md).

# Chiliz Block Explorer で verify する

[Chiliz Block Explorer](https://scan.chiliz.com/) は Blockscout によって構築されたサービスです。そのため、日常的な利用については [Blockscout のドキュメント](https://docs.blockscout.com/) を参照できます。

Blockscout は、Chiliz Chain 上で smart contract を verify する複数の方法を提供しています。

* ほとんどの contract の場合: Blockscout の verification 機能を使用する。
* より複雑な contract の場合: Hardhat などのコマンドラインツールを使用する。
* 簡単な contract の場合: Blockscout の API を使用する。

Blockscout の [contract verification に関するドキュメント](https://docs.blockscout.com/devs/verification) を参照してください。

## Chiliz Block Explorer の verification 機能を使う

Chiliz Block Explorer は、Chiliz Mainnet 向けの contract verification インターフェースを\
<https://scan.chiliz.com/contract-verification> で提供しています。\
こちらでも説明されています: <https://docs.blockscout.com/devs/verification/blockscout-ui>

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

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

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

手順:

1. 「Contract address to verify」フィールドに、smart contract のアドレスを入力します。
2. contract に適用したいライセンスを選択します。これが何を意味するのかは分かりにくいため、オープンソースライセンスについての [簡単な解説](https://choosealicense.com/) を参照してください。

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

3. verification 方法を選択します。\
   最も簡単な方法は、flatten した Solidity contract、つまり「Solidity (Single file)」を提供することです。
4. compiler のバージョン（Chiliz Chain は v0.8.24 までのバージョンをサポート）と EVM のバージョン（Chiliz Chain は Shanghai バージョンまでをサポート）を選択します。

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

5. 最後に、「Contract Code」フィールドに、smart contract を最初にコンパイルする際に使用したコードを貼り付け、「Verify & publish」をクリックします。

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

成功すると、contract は緑色のチェックマークなどで verified であることが明確に表示されます。block explorer はそのソースコードを公開し、すべてのインタラクティブ機能を有効にします。

<figure><img src="/files/CSfDEjXZr33l7psoFU4N" alt="" width="563"><figcaption></figcaption></figure>

## コマンドラインツールを使う

Blockscout 自身のドキュメントには、verification にコマンドラインツールを使用する方法についての [詳細なガイド](https://docs.blockscout.com/devs/verification) があります。これは、開発環境で contract verification を自動化したい場合に特に役立ちます。

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

* [Hardhat](https://docs.blockscout.com/devs/verification/hardhat-verification-plugin)
* [Foundry](https://docs.blockscout.com/devs/verification/foundry-verification)
* [Sourcify](https://docs.blockscout.com/devs/verification/contracts-verification-via-sourcify)
* [Remix](https://docs.blockscout.com/devs/verification/remix-verification)
* ... その他多数！

## Blockscout の API を使う

Blockscout には専用の contract verification API があります。

{% embed url="<https://docs.blockscout.com/devs/verification/blockscout-smart-contract-verification-api>" %}

API エンドポイントは次のとおりです。

* Chiliz Mainnet: <https://scan-api.chiliz.com/api/v2/>
* Spicy Testnet: <https://spicy-explorer-api.chiliz.com/api/v2/>


---

# 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/block-explorer-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.
