ðĒHow to Verify
Verifying Smart Contracts on Orenium Testnet or Mainnet
Verifying a smart contract after deploying it on the Orenium Testnet or Mainnet is a crucial step to ensure its integrity and functionality. Follow these steps to successfully verify your contract:
1. Deploy Contract: Deploy your smart contract using Remix IDE or any other suitable platform with the Orenium Testnet or Mainnet selected as the network.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252F2uFpClon70cstIE1xrJB%252Fremix-img.png%3Falt%3Dmedia%26token%3Dea946c87-b3b0-4e02-a452-79ff4bc5312e&width=768&dpr=4&quality=100&sign=ec2f2465&sv=1)
2. Confirm Wallet and Gas Fee: Confirm the wallet address associated with the contract deployment and authorize the gas fee payment using Native Orenium (tOre for Testnet & ORE for Mainnet). Wait for the contract creation transaction to be confirmed on the ORC20 network.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FM3RmeekjFcqBjyDjMBTa%252Fconfrim-metamask.png%3Falt%3Dmedia%26token%3D6bc60859-8cee-4a99-a4ec-86fb4928ae03&width=768&dpr=4&quality=100&sign=58ed38e2&sv=1)
3. View Transaction on Block Explorer: Once the transaction is confirmed, a popup notification will appear in your MetaMask wallet. Click on "View" to access the transaction details on the Orenium Block Explorer
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FcZK3FTFCvvpBC0ro40O8%252Fexplorer-view.png%3Falt%3Dmedia%26token%3Db6d36486-5bd5-4a59-807c-5a0b4bc31971&width=768&dpr=4&quality=100&sign=c0c28cc7&sv=1)
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252Fo7Fead66Nf5LCUDHtSC2%252Fcontract-view.png%3Falt%3Dmedia%26token%3D98c61a6f-c02a-45e6-bb12-c2c20ac2f150&width=768&dpr=4&quality=100&sign=d805a40d&sv=1)
4. Access Contract Details: On the Block Explorer, locate and select the address corresponding to your deployed contract. Navigate to the "CODE" section to access the contract's source code.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252F80rW4ncR6QRY00EYpIkr%252Fcode-view.png%3Falt%3Dmedia%26token%3D61945f63-699c-43b9-83ba-452a3f754711&width=768&dpr=4&quality=100&sign=34977b&sv=1)
5. Verify Smart Contract: Within the contract details, find the option to verify and publish the contract. Click on "Verify and Publish."
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252F7izXm1QehKKcC1JG18m4%252Fverif-view.png%3Falt%3Dmedia%26token%3D28077237-89dc-45d2-9271-28dd85ef404f&width=768&dpr=4&quality=100&sign=ae844dc9&sv=1)
6. Provide Contract Details: Choose the option "via flattened source code" and proceed to the next step. Enter the required contract details, including the contract name, compiler version, and optimization settings used during compilation in Remix IDE.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252F8aYf09gdV9fs0IvCR2KV%252Fflatten-view.png%3Falt%3Dmedia%26token%3Dd4fd4364-666e-4ad8-b909-ab7d7b48324e&width=768&dpr=4&quality=100&sign=ca28f3d4&sv=1)
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FLV8gAI9G3LSglE9wmDCc%252Fverif-stag1.png%3Falt%3Dmedia%26token%3D1211eefe-9fa6-41c4-8f84-39154b473948&width=768&dpr=4&quality=100&sign=482e34f5&sv=1)
7. Enter Solidity Code: Copy the Solidity code of your contract from Remix IDE and paste it into the "Enter the Solidity Contract Code" field.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FhzOwCrEGGAXgBy3Dbvlj%252Fverif-stag2.png%3Falt%3Dmedia%26token%3D761b7009-668d-44f2-a515-6df5e9d32daf&width=768&dpr=4&quality=100&sign=4bb31b16&sv=1)
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FZpVJyBfddWyTrYGZiMlo%252Fverif-stag3.png%3Falt%3Dmedia%26token%3D3ed2a417-2857-42a0-93d6-d0f8379eb87c&width=768&dpr=4&quality=100&sign=13e359ee&sv=1)
8. Verify and Publish: Click on "Verify and Publish" and wait for the verification process to complete. This may take a few moments.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FpJm8kkgZutb5bjOeSHPS%252Fverif-stag4.png%3Falt%3Dmedia%26token%3D99bae0eb-3872-48ea-b3af-463923fa49e2&width=768&dpr=4&quality=100&sign=48b8d980&sv=1)
9. Confirmation: Upon successful verification, the contract details will be displayed, confirming that the contract has been successfully verified on the Orenium network.
![](https://base.orenium.org/~gitbook/image?url=https%3A%2F%2F4177037325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmN99FsNpvcksxJRya8wU%252Fuploads%252FOnBENeFgV2cSg3XPzBvI%252Fverif-stag5.png%3Falt%3Dmedia%26token%3D6c2e47f6-243e-4610-adf2-e7f664028f45&width=768&dpr=4&quality=100&sign=1aa937a1&sv=1)
By following these steps, you can ensure that your smart contract is verified and ready for use on the Orenium Testnet or Mainnet, providing transparency and security to all stakeholders involved.
Last updated