# Smart Contract Verification

<https://explorer.harmony.one/verifycontract>

Right now, we support verification only for one single solidity file - therefore, before deployment and verification, you will need to flatten all solidity sources to one file.

## 1. Flatten your Solidity Files

To flatten your solidity files we recommended to use [Truffle Flattener lib](https://www.npmjs.com/package/truffle-flattener).

```javascript
npm install truffle-flattener -g
truffle-flattener <solidity-files>
```

Or you can use any other flattener lib.

## 2. Deploy Contract to Harmony

To easy the verification we recommend the contract deployment using [Harmony Remix](/home/developers/deploying-on-harmony/using-remix/deployment-using-remix.md).

## 3. Verify Contract

You can verify your contract here: <https://explorer.harmony.one/verifycontract>

![Verify Contract](/files/-Mez8aLukIa32Qf8A5Wl)

It is important to use the correct parameters (same as on deployment):

* Contract address
* Contract name
* Compiler version
* Optimizer
* Chain Type (mainnet or testnet)
* Sources
* Imported libs

Then click on **Submit** button. If all params are correct - you should to see a Success message, or an Error if bytecodes are not equal. On Success case - your contract will verify and you will see all contract details on contract explorer page.

![Contract Verification](/files/-Mez97Pbz97Vmyjscmnn)


---

# Agent Instructions: 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.harmony.one/home/developers/deploying-on-harmony/smart-contract-verification.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.
