> For the complete documentation index, see [llms.txt](https://docs.viction.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viction.xyz/faq/products/vicissuer/how-to-verify-and-publish-contract-source-code-on-vicscan.md).

# How to Verify & Publish Contract Source Code on VicScan

## Issue a token on VicIssuer <a href="#issue-a-token-on-vic-issuer" id="issue-a-token-on-vic-issuer"></a>

To issue a token on VicIssuer, ensure you've completed the preceding steps. Once done, proceed to the final step outlined below. For detailed guidance, refer to the instructions [here ](/faq/products/vicissuer.md)

<figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FhtbTbOosuU9PdpQX8LD5%2FScreenshot%202024-05-30%20at%2000.41.17.png?alt=media&amp;token=11550a4e-5b34-4fc1-bd79-f3025a66845b" alt="" width="563"><figcaption></figcaption></figure>

Ensure that all detail is correct then click on the **Issue Token** button. <mark style="color:yellow;">**The code here is only displayed in this step**</mark>. Hence It is recommended that you copy & store it to your file. So you can use it to perform the contract verification later on.

{% hint style="warning" %}
**If you didn't copy the source code here, there is no way for you to go back to copy it again**
{% endhint %}

<figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FxOK7zqCaS2XhnsNFYwrF%2FScreenshot%202024-05-30%20at%2000.41.56.png?alt=media&amp;token=3f703252-ffc8-4105-8c3c-c8df1eddbb30" alt="" width="563"><figcaption></figcaption></figure>

Allow the connection to the site, then confirm the deployment of a new contract via the wallet pop-up. Once completed, a success pop-up will be displayed.

<div><figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FvfJSK5CTTlFYgbGaWfcK%2FScreenshot%202024-05-30%20at%2000.44.23.png?alt=media&amp;token=7ba67b9e-4a6d-4b00-b7d1-a7c8c6ac9613" alt="" width="563"><figcaption></figcaption></figure> <figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FSGrtzQU0Dj6eyUFPHC2S%2FScreenshot%202024-05-30%20at%2000.44.55.png?alt=media&amp;token=79c32a59-1806-4170-b624-f35a85b04a57" alt=""><figcaption></figcaption></figure></div>

**View** the contract at the dashboard of **VicIssuer**. Click on the contract address to view on explorer

<figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FMoOZsICvzxcOdcwVhc6k%2FScreenshot%202024-05-30%20at%2000.45.15.png?alt=media&amp;token=4d502cb3-f760-4e7a-9ca6-db1c53c03227" alt=""><figcaption></figcaption></figure>

## Verify & Publish Contract Source Code on VicScan

**Step 1:** Click on the **Contract** tab & click on **Verify & Publish** button

<figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FHf5kvm4snfy8xN3k8Ncu%2FScreenshot%202024-05-30%20at%2000.46.55.png?alt=media&amp;token=e440c458-8a3d-4da6-b976-b07ee772eb82" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FWlxksLPnMwgSkGcHPUiZ%2FScreenshot%202024-05-30%20at%2000.48.01.png?alt=media&amp;token=355b714a-41d4-4b3a-83f4-21c21974eabb" alt=""><figcaption></figcaption></figure>

**Step 2:** Fill in the following information

* **Contract Address**: **Fetched** the contract address **automatically**
* **Contract Name**: If you create a **token** via **Viction Issuer** then the name should be
  * **MyVRC25Mintable** for **Reissueable** token (selected when issuing)
  * **MyVRC25** for **Non-reissueable** token
* **Complier:** Select the compiler version **v0.7.6** for verifying the **contract is issued** from **VicIssuer**
* **Optimization:** Default is **No**. Refer: [![](https://cdn.sstatic.net/Sites/ethereum/Img/favicon.ico?v=40dede55262c)'Runs (Optimizer) ' and 'Optimization' while verifying source code on Etherscan](https://ethereum.stackexchange.com/questions/64172/runs-optimizer-and-optimization-while-verifying-source-code-on-etherscan)
* Click on the “**Add Solidity Source Code**“ to input the source code.

  * **File name** can be any thing without **space** or **special characters**.
  * **Solidity Source Code**: Copy & paste your source code from the VicIssuer screen.&#x20;

  <figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FZAla8TeNtjUdYS2jlyhh%2FScreenshot%202024-05-30%20at%2000.52.59.png?alt=media&amp;token=4d5339d6-3d3b-417a-b221-24313215e347" alt=""><figcaption></figcaption></figure>

**Step 3:** The Contract is verified successfully

<figure><img src="https://1198941402-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPmPMaOPJdK9KcdXtJdQH%2Fuploads%2FtTgOiWe7pVUItcxdFkfC%2FScreenshot%202024-05-30%20at%2000.55.52.png?alt=media&amp;token=95184e79-69ec-4bd2-86cb-d6ea1289c89b" alt=""><figcaption></figcaption></figure>
