To connect to an existing Ethereum network, navigate to the Run tab and select Environment.
Environment provides the following options as shown in the following screenshot:
JavaScript VM
Injected Web3
Web3 provider
Selecting the JavaScript VM option will connect the node to a built-in mock Ethereum network. It is the best suitable network for quick testing.
The injected Web3 option connects to a provider supplied by MetaMask or other wallets. The Web3 provider option connects to a node directly using its RPC URL.
If you are using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.