Back

How to verify Ethereum smart contract code on Tokenview?

A smart contract is a self-executing agreement where a treaty between a buyer and a seller is written into lines of code in a distributed blockchain network. If users need to publish tokens or Dapp games on Ethereum, they need to open source their contract code. To ensure that the contract code is indeed the code in the blockchain, and to allow the public to read and review the contract, it needs to be verified before it can be published and updated.

Tokenview has added a smart contract verification function, which contract creators can choose to use in Tokenview Ethereum Explorer to verify contracts, publish and update.

How to verify contracts on Tokenview?

If you are a contract owner and wish to verify your contract, you can do so by following these steps:

1. open Tokenview Ethereum Explorer

Open Tokenview Ethereum Explorer,And click 'Verify Contract' in the navigation bar or click the link directly to view the page: https://eth.tokenview.io/cn/verifyContract

How to verify smart contracts in Tokenview Ethereum Explorer

2. verify source code

According to the content of the page to fill in and select '0 xd44bb66xxxxxxxxxxxxx277f7daa6943d4904', for example.

  • Enter the contract address;
  • Select the contract compiler. There are four contract compilers supported by Tokenview: Solidity (single file), Solidity (Multi-Part files), Solidity (Standard-Json-Input), Vyper (Experimental).
  • Select the compiler version
  • If there is an open source license, select the corresponding license, if there is No, the default is' No Licence (None) '
  • Agree to the terms of service and click Continue.
How to verify smart contracts in Tokenview Ethereum Explorer

3. Verify and publish the contract code

If the compiler type is Solidity (single file), enter the contract code into the code box. The function parameters ABI-encode and Library should be filled in and selected. Click man-machine verification, and finally click 'Verify and publish'.

How to verify smart contracts in Tokenview Ethereum Explorer

If the compiler type is Solidity (Multi-Part files), you can upload Solidity files. The function parameters ABI-encode and Library should be filled in and selected. Click man-machine verification, and finally click 'Verify and publish'.

How to verify smart contracts in Tokenview Ethereum Explorer

4. Complete the publish

After the contract verification is completed, it will display 'successfully generated XXX Code and ABI XXX'.

How to verify smart contracts in Tokenview Ethereum Explorer

5. Review the contract

After successfully publishing the contract, click the contract address in the figure above to view the published contract in the Tokenview browser.

How to verify smart contracts in Tokenview Ethereum Explorer
Recent search