web3.eth.accounts
只读属性,返回当前节点持有的帐户列表。
同步调用:
web3.eth.accounts
异步调用:
web3.eth.getAccounts(callback(error, result){ ... })
返回值:
Array
- 节点持有的帐户列表。
示例:
var accounts = web3.eth.accounts;
console.log(accounts);
在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器
只读属性,返回当前节点持有的帐户列表。
同步调用:
web3.eth.accounts
异步调用:
web3.eth.getAccounts(callback(error, result){ ... })
返回值:
Array
- 节点持有的帐户列表。示例:
var accounts = web3.eth.accounts;
console.log(accounts);