Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lenny-mo opened this issue May 18, 2023 · 1 comment

Comments

@lenny-mo
Copy link

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.

@lenny-mo
Copy link
Author

I found that etherscan supports SEPOLIA at this URL, but this URL https://api-sepolia.etherscan.io/ is currently inaccessible, so I think the quickstart of the Chainlink Hardhat Starter Kit seems to need to be modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant