Skip to content

NomicLabsHardhatPluginError: Failed to send contract verification request. when using this command “npm run deploy --network sepolia” #169

@lenny-mo

Description

@lenny-mo

I tried to deploy Hardhat Starter Kit following the tutorial in Quickstart, but it didn't work. Although I have changed the .env file and replaced the correct SEPOLIA_RPC_URL and my wallet address in the SEPOLIA network, the deployment still fails.

The following prompts in the terminal after failure:

APIConsumer deployed to 0xA8AB10f440949F3c779C002aa646543d0378094c on sepolia
Nothing to compile
NomicLabsHardhatPluginError: Failed to send contract verification request.
Endpoint URL: https://api-sepolia.etherscan.io/api
Reason: Connect Timeout Error
    at verifyContract (/Users/morethan/Documents/git/XJTLU_Master_Project/chainlink-smart-contract/hardhat-starter-kit/node_modules/@nomiclabs/hardhat-etherscan/src/etherscan/EtherscanService.ts:35:11)

This error means the connection timed out. I think the Sepolia network is a test network and may not be supported by Etherscan, hence the timeout error when trying to verify the contract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions