I am attempting to test out a simplemultisig contract (https://github.com/christianlundkvist/simple-multisig) but it requires the chain id. I have been testing using ganache but wanted to switch to remix to make it a bit easier.

Any idea on how to get the chain id of the vm and does it change every time you reload the page?

1 Answer 1


You check it by using block.chainid which seems to be available on the global scope. Use hardhat/console to see it - I got value 1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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