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

adds fetchAddress #544

Merged
merged 1 commit into from
Feb 6, 2024
Merged

adds fetchAddress #544

merged 1 commit into from
Feb 6, 2024

Conversation

netbonus
Copy link
Contributor

@netbonus netbonus commented Feb 2, 2024

example:

const address = await fetchAddress()
// returns the m/44'/60'/0'/0/0 address from the active wallet

const address = await fetchAddress(10)
// returns the m/44'/60'/0'/0/10 address from the wallet

const address = await fetchAddress([HARDENED_OFFSET + 84, HARDENED_OFFSET, HARDENED_OFFSET, 0, 0])
// returns the m/84'/0'/0'/0'/0/0 address (the first btc addr)

@netbonus netbonus requested a review from mrcnk February 2, 2024 21:33
@netbonus netbonus merged commit 536f01b into dev Feb 6, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants