> 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/ko/gaebal/gibon/seumateu-keonteulaekteu-geomjeung/chiliscan-geomjeung.md).

# Chiliscan으로 검증

[Chiliscan](https://chiliscan.com/)은 Routescan이 구축한 서비스입니다. 일상적인 사용을 위해 [Routescan 문서](https://routescan.io/documentation)를 참고할 수 있습니다.

Routescan은 Chiliz Chain에서 스마트 컨트랙트를 검증하는 여러 방법을 제공합니다.

* 대부분의 컨트랙트: Chiliscan의 검증 양식 사용.
* 복잡한 컨트랙트: Hardhat과 같은 명령줄 도구 사용.
* 간단한 컨트랙트: Routescan API 사용.

Routescan의 [컨트랙트 검증 문서](https://info.routescan.io/en/collections/14599808-contract-verification)를 참조하세요.

## Chiliscan 검증 양식 사용

Chiliscan은 Chiliz Mainnet용 컨트랙트 검증 인터페이스를 제공합니다: <https://chiliscan.com/verifycontract>.\
문서: <https://info.routescan.io/en/articles/11991234-verifying-contracts-ui>

{% hint style="info" %}
다음 인터페이스에서 Spicy Testnet의 컨트랙트도 검증할 수 있습니다:\
<https://testnet.chiliscan.com/verifycontract>
{% endhint %}

{% hint style="info" %}
다중 파일 컨트랙트의 경우, 업로드 전에 코드를 평탄화했는지 확인하세요.

예를 들어, Remix IDE를 사용하는 경우 파일 탐색기에서 컴파일된 `contract-XYZ.sol` 컨트랙트 파일을 마우스 오른쪽 버튼으로 클릭하고 "Flatten" 옵션을 선택하세요.\
그런 다음 결과 파일(`contract-XYZ_flattened.sol`)을 다운로드하여 검증 양식에 업로드합니다.
{% endhint %}

단계:

1. "Contract address" 필드에 검증하려는 스마트 컨트랙트의 주소를 입력합니다.\
   \&#xNAN;*상황에 따라 도구가 Chiliz Chain에 컨트랙트가 아직 없거나 이미 검증되었다고 알릴 수 있습니다. 그렇지 않은 경우 추가 인터페이스 요소가 표시됩니다.*<br>
2. "Solidity에서 가져오기"를 클릭하고 양식을 올바르게 입력합니다:
   1. 컴파일러 버전으로 "0.8.30+xxx"를 선택합니다.
   2. EVM 버전으로 "Prague"를 선택합니다.
   3. 컨트랙트 파일을 업로드합니다.
3. "컨트랙트 검증"을 클릭합니다.

성공하면 컨트랙트가 초록색 체크 표시와 함께 검증됨으로 명확히 표시됩니다. 블록 탐색기에서 소스 코드가 공개되고 모든 인터랙티브 기능이 활성화됩니다.

오류가 발생하면 인터페이스에 안내 오류 메시지가 표시됩니다.

## 명령줄 도구 사용

Routescan 자체 문서에는 명령줄 도구를 이용한 검증 방법에 대한 [자세한 가이드](https://info.routescan.io/en/collections/14599808-contract-verification)가 있습니다. 개발 환경에서 컨트랙트 검증을 자동화하려는 경우 특히 유용합니다.

다음에 대한 배포 및 검증 가이드를 읽을 수 있습니다.

* [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에는 컨트랙트 검증에 사용할 수 있는 전용 컨트랙트 API가 있습니다.

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

간단한 스마트 컨트랙트로 작업하는 경우 Routescan이 제공하는 Paragraph.com 가이드를 활용하세요. 복잡한 빌드 프로세스가 필요 없는 컨트랙트를 준비하고 검증하는 단계를 안내합니다.

* [Routescan API를 사용하여 스마트 컨트랙트를 프로그래밍 방식으로 쉽게 검증하는 가이드](https://paragraph.com/@routescan-io/a-guide-to-easily-verify-your-smart-contract-programmatically-using-routescan-s-api)에 접근합니다.

참고: 컨트랙트가 평탄화되어 있어야 합니다.


---

# 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/ko/gaebal/gibon/seumateu-keonteulaekteu-geomjeung/chiliscan-geomjeung.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.
