Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get all address from a wallet accounts? (bcoin) #1013

Open
munnaweber opened this issue Apr 24, 2021 · 1 comment
Open

How to get all address from a wallet accounts? (bcoin) #1013

munnaweber opened this issue Apr 24, 2021 · 1 comment

Comments

@munnaweber
Copy link

"accountIndex": 0,
"receiveDepth": 9,
"changeDepth": 5,
"nestedDepth": 5,
"lookahead": 10,

here i've 9 receiveDepth addresses. but i see only one.
How to get all address from a wallet accounts.
Please help me.

@pinheadmz
Copy link
Member

The wallet shows you your next receive address in the BIP32 path, but of course all previous addresses are still valid, the wallet just shows you one at a time.

There are a few ways to see the addresses generated by your wallet so far:

https://bcoin.io/api-docs/#listreceivedbyaccount

https://bcoin.io/api-docs/#listreceivedbyaddress

This one will also output your private keys, so use with caution:

https://bcoin.io/api-docs/#dumpwallet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants