文档

使用solc编译智能合约

更新时间:
  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
  • 本页导读 (0)
文档反馈