web3.eth.compile.lll

优质
小牛编辑
127浏览
2023-12-01

web3. eth.compile.lll(sourceString [, callback])

编译LLL源代码。

参数:

  • String - LLL源代码。
  • Function -(可选)回调函数,用于支持异步的方式执行[async]。

返回值:

String - 十六进制格式编译后的LLL编码。

示例:

var source = "...";

var code = web3.eth.compile.lll(source);
console.log(code); // "0x603880600c6000396000f3006001600060e060020a600035048063c6888fa114601857005b6021600435602b565b8060005260206000f35b600081600702905091905056"