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

new xyzpub API returns txids #436

Merged
merged 1 commit into from
May 18, 2022
Merged

Conversation

pointbiz
Copy link
Contributor

This new xyzpub API endpoint will return a list of txids associated with the xyzpub.
If limit parameter is not set then it will grab all txids associated with the xyzpub.
If limit is set it will grab only txids associated with the limit amount of receive and change addresses. Eg. limit is 1 means 1 receive and 1 change address, the first one in the bip32 path.

My plan is to use this endpoint with my bitcoin-reports.com site. I'm returning only unique txids to make the size of the result as small as possible. As well I do not want to fetch more than txids as it will slow down the endpoint.

@janoside janoside merged commit 4acb76b into janoside:master May 18, 2022
janoside added a commit that referenced this pull request May 18, 2022
-move /api/xyzpub/:xyzpub to /api/xyzpub/txids/:xyzpub
-move /api/util/xyzpub/:xyzpub -> /api/xyzpub/:xyzpub
-rename xyzpubAddressApi -> xyzpubApi and move more functionality from apiRouter there
-searchXpubTxids: return more details about the search, then in the apiRouter just use what's needed
-fix in searchXpubTxids: reset gapCount value when tx is found
-update api docs
-update changelogs
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