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 handling for fetching more than 10 addresses #545

Merged
merged 3 commits into from
Feb 9, 2024
Merged

Conversation

netbonus
Copy link
Contributor

@netbonus netbonus commented Feb 4, 2024

adds the ability to fetch an arbirary number of addresses using fetchAddresses

examples:

const addresses = await fetchAddresses({ n: 12 });
// returns 12 addresses

const addresses = await fetchBtcSegwitAddresses({ n: 12 });
// returns 12 addresses

const addresses = await fetchAddresses({ n: 12, startPathIndex: 100 });
// returns 12 addresses starting at the 100th index

@netbonus netbonus requested a review from mrcnk February 4, 2024 19:41
src/api/addresses.ts Show resolved Hide resolved
src/api/addresses.ts Outdated Show resolved Hide resolved
@netbonus netbonus merged commit 32b5389 into dev Feb 9, 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