web3.eth.getCompilers
返回可用的合约编译器列表。该功能已过时,不再建议使用,参考这里。
调用方法:
web3.eth.getCompilers([callback])
参数:
callback
:Function,可选,使用回调函数时将采用异步http请求节点的API。
返回值:
Array
- 可用编译器名称字符串数组
示例代码:
var number = web3.eth.getCompilers();
console.log(number); // ["lll", "solidity", "serpent"]