Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

智能合约 编辑器 remix-ide

  1. 在线编辑,对网络有要求,在线地址

    https://remix.ethereum.org/

  2. 离线编辑,docker down镜像

    docker pull remixproject/remix-ide:latest
    docker run -p 8080:80 remixproject/remix-ide:latest
    

    浏览器运行 localhost:8080,就可以用 solidity 编写智能合约了

  3. remix-project 连接本地文件夹:

  • 安装remixd

    npm install -g @remix-project/remixd

  • 连接

    remixd -s d:/workspace -u http://localhost:8080 address public owner;

    function getOwner() public { owner = msg.sender; }