Submit your contract to explorer
This section guide you to submit (or verify) contract source code on blockchain explorer – u2uscan.xyz
Last updated
This section guide you to submit (or verify) contract source code on blockchain explorer – u2uscan.xyz
Last updated
Once verified, a smart contract or token contract's source code becomes publicly available and verifiable. This creates transparency and trust. Plus, it's easy to do!
There are two ways to verify source code:
In this tutorial we only focus on Hardhat.
In the last section, we have deployed Lock
contract on Nebulas testnet:
To verify the contract source code with Hardhat, below is the command:
NETWORK
: You need to provide which network you have used, eg. nebulas
DEPLOYED_CONTRACT_ADDRESS
: Where the contract is deployed at, eg. 0x8D51395C76C34d0e11178c1F7EE3219B4b958e30
[ARG_1 ARG_2 ...]
: Arguments that passed to the contructor when the contract is deployed, eg. unlockTime
Let's verify it:
It will result: