> For the complete documentation index, see [llms.txt](https://lachain.gitbook.io/lachain-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lachain.gitbook.io/lachain-docs/basics/openapi.md).

# Verify a Smart Contract

**To verify a smart contract in Explorer:**

1\. After creating a contract, you will receive an address. Go to LaChain Explorer (<https://explorer.lachain.network>) and enter the contract address in the search bar.

2\. Once you find your contract details, select the "Code" tab to view the bytecode. There, you'll see a button called "Verify & Publish." Click on it.

3\. Several verification options will be offered. Two common methods are:

**- Flattened Source Code (Solidity):** Must provide contract address (prefixed with "0x"), contract class name, compiler version, EVM version, if optimization was enabled during compile , the number of optimization runs, the contract code in Solidity, and other optional details as needed. Then click the "Verify and Publish" button.

**- Standard JSON Input:** In this method, you will provide the name of the contract, the compiler version, a standard input JSON file (following the Solidity format), and other optional details. After filling out the form, click the "Verify & Publish" button.

4\. Wait for the response after clicking "Verify & Publish". If all goes well, you will see a check mark next to "Code" in the code tab and an additional tab called "Read Contract" is added to access your verified contract.

<br>
