Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use web3.eth.accounts

Shulou Source: shulou.com Published: 2022-06-01 08:02:16 11月14日 Update

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!

Tags: Learning accounts more nodes help practical next properties articles methods theories knowledge examples articles websites materials follow questions ease of use synchronization Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia MariaDB Shulou Information Redmi