# \[resolved\] How to get accounts from the local HDWallet

**URL:** https://forum.celo.org/t/resolved-how-to-get-accounts-from-the-local-hdwallet/579
**Category:** Dapps
**Created:** [August 14, 2020, 1:40pm UTC](https://forum.celo.org/t/resolved-how-to-get-accounts-from-the-local-hdwallet/579 "2020-08-14T13:40:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![daniportugal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.celo.org/daniportugal/32/217_2.png) [@daniportugal](https://forum.celo.org/u/daniportugal)
#### Post date: [August 14, 2020, 1:40pm UTC](https://forum.celo.org/t/resolved-how-to-get-accounts-from-the-local-hdwallet/579/1 "2020-08-14T13:40:08Z")

</div>

Hi there!

I’m an Ethereum developer and I’m trying to get the second account from the local wallet.  
I created two accounts and added them to the local wallet with `kit.addAccount(acc.privateKey);`

In Eth, I’d do something like this:  
`const secondAcc = web3.eth.accounts.wallet[1];`

How should I do that in CELO? I guess my general question is: how does one get the list of accounts in the local wallet?

---

<div class="post-metadata">

### Author: ![daniportugal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.celo.org/daniportugal/32/217_2.png) [@daniportugal](https://forum.celo.org/u/daniportugal)
#### Post date: [August 14, 2020, 1:58pm UTC](https://forum.celo.org/t/resolved-how-to-get-accounts-from-the-local-hdwallet/579/2 "2020-08-14T13:58:55Z")

</div>

Found it looking at the code here: [https://github.com/celo-org/celo-monorepo/blob/008a1931fd5622ccf699cf7b9a121ec4e33c0a96/packages/contractkit/src/providers/celo-provider.ts#L24](https://github.com/celo-org/celo-monorepo/blob/008a1931fd5622ccf699cf7b9a121ec4e33c0a96/packages/contractkit/src/providers/celo-provider.ts#L24)

To get the local accounts, do this inside an async function:

`const accs = await kit.web3.currentProvider.getAccounts();`

I might have missed this information when reading the docs. Couldn’t find it.
