全部產品
Search
文件中心

:使用solc編譯智能合約

更新時間:Jan 24, 2025

  1. 安裝 solc

    sudo npm install -g solc
  2. 編譯Solidity智能合約

    solcjs --abi --bin ./YourContract.sol -o build
  3. 擷取智能合約的 ABI 和 bytecode

    // print abi file in build directory
    cat ./build/*.abi
    // print bytecode file in build directory
    cat ./build/*.bin