使用solc编译智能合约

更新时间:2019-01-09 07:10:06
  1. 安装 solc

    1. sudo npm install -g solc
  2. 编译Solidity智能合约

    1. solcjs --abi --bin ./YourContract.sol -o build
  3. 获取智能合约的 ABI 和 bytecode

    1. // print abi file in build directory
    2. cat ./build/*.abi
    3. // print bytecode file in build directory
    4. cat ./build/*.bin
    AI助理

    点击开启售前

    在线咨询服务

    你好,我是AI助理

    可以解答问题、推荐解决方案等