使用solc编译智能合约

更新时间: 2019-01-09 15: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
上一篇: 开启geth交互控制台 下一篇: 配置truffle
阿里云首页 区块链服务 相关技术圈