Portal
Search…
eth_accounts
Returns accounts list
1
web3.eth.getAccounts([callback])
Copied!

Returns

An array of addresses controlled by node

Example

1
> web3.eth.getAccounts().then(console.log)
2
> [ '0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A' ]
Copied!
Last modified 9mo ago
Copy link