How to verify smart contract
Submit your smart contract code for independent verification and publishing on Avascan
Blockchain
API Endpoint (https)
hardhat-etherscan
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-etherscan";
const config: HardhatUserConfig = {
etherscan: {
apiKey: {
wagmi: "avascan", // apiKey is not required, just set a placeholder
},
customChains: [
{
network: "wagmi",
chainId: 11111,
urls: {
apiURL: "https://api.avascan.info/v2/network/testnet/evm/11111/etherscan",
browserURL: "https://testnet.avascan.info/blockchain/wagmi"
}
}
]
},
networks: {
wagmi: {
url: 'https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc',
accounts: [process.env.PRIVATE_KEY]
},
},
};
export default config;Deploy
Verify
Last updated