hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

ProviderError: Method hardhat_mine not found [Mining multiple blocks]

Open myuniswap2000 opened this issue 5 years ago • 5 comments

hello admin and everyone: I have a problem: (1) ProviderError: Method hardhat_mine not found [Mining multiple blocks] (2) my version: npx hardhat --version 2.6.7 (3)my code: const {network} = require("hardhat"); await network.provider.send("hardhat_mine", [{ blocks: 10, interval: 5 }]);

thank you!!

myuniswap2000 avatar Oct 27 '21 01:10 myuniswap2000

Hi @myuniswap2000, that method is not supported yet. We are working on it and we'll announce it in our releases notes when it's available.

Please use our Discord server if you have more questions.

fvictorio avatar Oct 27 '21 14:10 fvictorio

Is this available yet? It's in the docs, but i'm still getting the MethodNotFoundError: Method hardhat_mine not found error.

Is there an alternative way of increasing the block number by 7000 blocks? I get a timeout error if I use evm_mine in a loop.

otr4v3z avatar Feb 19 '22 16:02 otr4v3z

We haven't released this yet. We'll probably do it this week.

fvictorio avatar Feb 21 '22 12:02 fvictorio

is it out yet?

senthilsamrat avatar Mar 01 '22 14:03 senthilsamrat

@senthilsamrat yes! Check the release notes to learn more.

fvictorio avatar Mar 03 '22 14:03 fvictorio