How to use web3.eth.accounts
This article mainly introduces "how to use web3.eth.accounts". In daily operation, I believe many people have doubts about how to use web3.eth.accounts. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use web3.eth.accounts". Next, please follow the editor to study!
A read-only property that returns a list of accounts held by the current node.
Synchronous calls:
Web3.eth.accounts
Asynchronous invocation:
Web3.eth.getAccounts (callback (error, result) {...})
Return value:
Array-list of accounts held by the node.
Example:
Var accounts = web3.eth.accounts;console.log (accounts); at this point, the study of "how to use web3.eth.accounts" is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!