Skip to content

Connect provider to hardhat built-in network #3076

Discussion options

You must be logged in to vote

This is not possible because the in-process network doesn't open an HTTP connection. So your options are:

  1. Use ethers.provider from the hardhat-ethers plugin
  2. Wrap the network.provider with ethers.Web3Provider. network.provider is an EIP-1193 provider so you can pass it to that ethers's provider.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@fvictorio
Comment options

@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant