-
Notifications
You must be signed in to change notification settings - Fork 131
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
Added batch address/scripthash POST call #20
base: new-index
Are you sure you want to change the base?
Conversation
Thanks for the PR! I've been thinking to implement this with a more generic
This could be accomplished by emulating HTTP calls via But I can see this being useful even if only available for the What do you think @greenaddress? |
Invoking the existing single object calls through some batch wrapper does seem feasible. I'd however avoid having to pass through the amount of overhead in the request. The repetitiveness of the the URL templates seem to add unnecessary bloat to the payload. |
Gzipping the request would make the url template repetitiveness much less of an issue, at least bandwidth wise. |
That would, but gzipping it without the repetitiveness would be even better. Either way, I think the shortest path to getting this working is as you've suggested. Perhaps a reduction could be as follows, where the patterns for the requests are parsed and batched by path and array of elements.
|
Any update on this? Super valuable feature |
Initial Docker support
Sorry, I pushed something to my personal fork and for some reason it took the PR references from the mempool repo and converted them to this repo and made a mention, bumping the issue. Looks like a bug with GitHub. |
Added a batch POST call. This is similar to the address and scripthash get calls, but allows retrieving more than one address at a time instead of having to flood the elects server with get requests for each address.