以太坊学习笔记——Remix 运行环境

翻译自 Remix 官方文档 https://remix-ide.readthedocs.io/en/latest/run.html#run-setup

Remix 提供三种运行环境,用于智能合约的编译和运行:

1. JavaScript VM

JavaScript 虚拟机环境,用于简单的智能合约编写与测试。所有交易都将在浏览器的沙箱区块链中执行。这意味着什么都不会被持久化,页面重新加载将从头开始启动新的区块链,旧的区块链状态不会被保存。

JavaScript VM: All the transactions will be executed in a sandbox blockchain in the browser. This means nothing will be persisted and a page reload will restart a new blockchain from scratch, the old one will not be saved.

2. Injected Provider

连接到页面嵌入提供商,例如 Metamask。

MetaMask 是一款基于浏览器插件的以太坊轻钱包,不需要下载,在浏览器中添加对应的扩展程序即可。

登录到 MetaMask 后,该账户对用户访问的所有网站都是可见的,处于隐私保护的需要,在使用完 MetaMask 后最好退出登录。

默认情况下,MetaMask 连接到一个测试网络。它也可以连接到以太坊主网络,甚至可以自定义 JSON-RPC 连接地址。

Injected Provider: Remix will connect to an injected web3 provider. Metamask is an example of providers that inject web3, thus can be used with this option.

3. Web3 Provider

连接到自定义节点,通常是私有链节点。Remix 连接到远程节点,需要为所选提供商提供 JSON-RPC 访问地址。

Web3 Provider: Remix will connect to a remote node. You will need to provide the URL address to the selected provider: geth, parity or any Ethereum client.

修订记录:

日期版本号作者修订内容备注
2019-7-181.0moonspirit创建文档
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值