eth_accounts

Returns accounts list

web3.eth.getAccounts([callback])

Returns

An array of addresses controlled by node

Example

> web3.eth.getAccounts().then(console.log)
> [ '0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A' ]

Last updated