12

I am following these instructions.

The problem is that the above instructions don't mention Chain ID and it appears Chain ID is required to even make it work. Thus, I'm stuck. enter image description here

What is the Chain ID? How do I get it to set it?

1
  • 1 - mainnet, 3 - ropsten, etc (see the full list here). Dec 12 '20 at 21:19
11

From the ganache-cli docs:

--chainId: Specify the Chain ID ganache-cli will use for eth_chainId RPC and the CHAINID opcode. For legacy reasons, the default is currently 1337 for eth_chainId RPC and 1 for the CHAINID opcode. Setting this flag will align the chainId values. This will be fixed in the next major version of ganache-cli and ganache-core!

So, in your case, the Chain ID should be 1337.

Your Answer

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.