以太坊的remix下运行环境的三种选项

本文介绍了以太坊Remix IDE的三种运行环境:JavaScript VM(内部沙箱,适用于简单测试),Injected Web3(依赖MetaMask插件,支持连接不同网络)和Web3 Provider(直接输入URL连接本地或远程节点)。通过这些环境,开发者可以灵活地部署和测试Solidity智能合约。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考自
Remix has 3 different environment options that can be used to deploy/test Solidity contracts: JavaScript VM, Injected Web3, and Web3 Provider. This option can be changed under the Environment drop down under the Run tab.
这里写图片描述

JavaScript VM:

This is Remix’s own internal sandbox. It does not connect to MainNet, TestNet, or any private network. It’s an in-memory blockchain that can be used for simple testing and quick mining.

Injected Web3:

This is the option to use for the browser plugin (MetaMask). Here, you are telling Remix to defer all control of the blockchain integration to the MetaMask plugin. At this point, MetaMask controls

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值