I am trying to connect Metamask to ganache by creating a custom RPC with the following details:


Chain Id: 5777

But I keep getting the error message The endpoint returned a different chain ID: 0x539

New contributor
Chidi Nkwocha is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • still not sure why network ID and chain ID are different for ganache most of the time they are the same - see my answer below – James Daly Nov 22 at 21:28

Try locking the account and when you are asked to sign in again use the option import wallet using mnemonic or seed phrase copy that from ganache and should be good to go

| improve this answer | |

Your Answer

Chidi Nkwocha is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.