I have deployed new contract on remix ethereum got Contract Adress as well as account address but now i want private key or password for my account address how to get that because while creating i have connected with JAVAScript VM for some reason web3 inject is not working on my laptop so now i confuse what to do and how to get Private key for my account address which i have created and when i am connecting Injected web3 it is connecting to Metamask but at below it says Currently you have no contract instances to interact with. I am not understanding what to do ..?? please help..!!

1 Answer 1


Javascript VM is a temporary blockchain instance in browser memory. If you reload the browser or the remix page then it will restart discarding previously deployed contracts.

Injected Web3 uses the web3 provider available in the browser, usually a wallet like Metamask.

The contracts deployed on Javascript VM are separated from the ones accessible by Injected Web3.

Javascript VM is used for quick testing, something you can discard. For more complex and longer interactions with contracts you want to use Injected Web3 and connect Metamask to a testnet like Rinkeby, or your own private testnet.


Your Answer

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

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