trufflesuite / ganache-cli-archive

Fast Ethereum RPC client for testing and development. See https://github.com/trufflesuite/ganache for current development.
https://www.trufflesuite.com/ganache
MIT License
3.36k stars 695 forks source link

Ganache-cli Fork hang on net_version #809

Closed Madeindreams closed 3 years ago

Madeindreams commented 3 years ago

When I try to fork the main net with Ganache-cli using this comand

ganache-cli --fork http://localhost:8545@11468204

I get the following output;

 Ganache CLI v6.12.1 (ganache-core: 2.13.1)
net_version

https://gitter.im/ConsenSys/truffle?at=5fdad8f0efa9c806fbd6a66b

Expected Behavior

I was expecting my 10 accounts to show.

Instead I have the output

net_version

And nothing else happen.

I have tried a different port

ganache-cli --fork http://localhost:8545@11468204 --port 12000

Then I get an Error;

Error: The fork provider errored when checking net_version: Invalid JSON RPC response: ""

How do I select the port to use with Ganache-cli? The port flag seam to try to fork from that port.

WSL2

arushsri515 commented 3 years ago

I have this exact same issue

Madeindreams commented 3 years ago

I have this exact same issue

ganache-cli -f <alchemy api url + KEY> -u

Grab the accounts and mnemonic. Leave the port as default. This setup is working fine with hardhat. Alchemy provide an archive state.

rayeaster commented 2 years ago

I have this exact same issue

any solution?