Verifying Smart Contracts
Last updated
Last updated
Most smart contract tooling has plugins for verifying your contracts easily on Blast chain explorer.
Blast Chain Explorer API:
Modify hardhat.config.ts
to point to Blast Chain’s RPC and block explorer API.
For example, the config for Blast Chain will look like this:
Now you can verify the smart contract by running the following command.
For example, this is how a smart contract that receives two uint parameters in the constructor should look:
You may receive an error stating etherscan.apiKey.trim is not a function
. If so, you need to update @nomiclabs/hardhat-etherscan
to be able to support custom chains. Try running npm update @nomiclabs/hardhat-etherscan