1

Remix's Javascript VM-mode is great because of its convenience and speed, but there doesn't seem to be a way to interact with your contract using different test accounts. Is there a way to do that?

1

Actually, in Remix there's an "Account" dropdown right beneath "Environment" (where you select Javascript VM). It provides five test accounts for you.

0

You could create locally a blockchain with 10 test accounts using "testrpc", a fast Ethereum RPC client for testing and development.

  1. Download and install testrpc and then run on terminal "test-rpc". You will then have the 10 accounts and their private keys.
  2. In Remix choose Web3-provider and connect to localhost:8545, where your test-rpc runs.
  • That's a good workaround, thank you. I was hoping it would be possible to do with the VM alone (seems like switching account functionality would be pretty doable). – will_durant Oct 23 '17 at 15:15
  • Turns out it is possible. Just provided the answer. – will_durant Oct 23 '17 at 18:26

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.