Can you take a look at how this was now implemented in the RPC code and align this implementation with that code? The prevouts_to_process and make_output helpers make this a bit easier to deal with and the code easier to understand.
kevkevinpal
commented at 1:56 AM on June 17, 2026:
I agree that makes sense in b7a73192b7f33d583f81a05d6b46c61d0ebffb72 I used prevouts_to_process and make_output
in
doc/REST-interface.md:159
in
84a1f671deoutdated
154 | @@ -155,6 +155,48 @@ Refer to the `getrawmempool` RPC help for details. Defaults to setting
155 |
156 | *Query parameters for `verbose` and `mempool_sequence` available in 25.0 and up.*
157 |
158 | +#### Transaction Spending Previous Outputs 159 | +`GET /rest/txspendingprevout/<TXID>-<N>/<TXID>-<N>/.../<TXID>-<N>.json`
Should we be limiting the number of outpoints that can be queried at once?
kevkevinpal
commented at 1:55 AM on June 17, 2026:
Yeah, that makes sense. I pushed b7a73192b7f33d583f81a05d6b46c61d0ebffb72 that reuses MAX_GETUTXOS_OUTPOINTS to limit the number of outpoints a user can query at once.
in
test/functional/interface_rest.py:417
in
84a1f671deoutdated
413 | @@ -414,6 +414,95 @@ def run_test(self):
414 | for tx in txs:
415 | assert tx in json_obj['tx']
416 |
417 | + self.log.info("Test the /txspendingprevout URI")
DrahtBot removed the label Needs rebase on Sep 1, 2026
DrahtBot added the label Needs rebase on Oct 23, 2026
kevkevinpal force-pushed on Oct 28, 2026
DrahtBot added the label CI failed on Oct 28, 2026
DrahtBot
commented at 3:43 PM on October 28, 2026:
contributor
<!--85328a0da195eb286784d51f73fa0af9-->
🚧 At least one of the CI tasks failed.
<sub>Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/40715316966/job/122911286738</sub>
<sub>LLM reason (✨ experimental): CI failed the IWYU lint check because it added a missing #include <util/expected.h> to src/rest.cpp, leaving an uncommitted diff.</sub>
<details><summary>Hints</summary>
Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the
affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
</details>
DrahtBot removed the label Needs rebase on Oct 28, 2026
DrahtBot removed the label CI failed on Oct 28, 2026
DrahtBot added the label Needs rebase on Nov 2, 2026
kevkevinpal force-pushed on Nov 12, 2026
rest: add interface for gettxspendingprevout rpc
This creates a REST interface for the gettxspendingprevout rpc and also
includes functional tests
16823639c4
rest: include util/expected.h directly
IWYU requires the header for util::Expected used by the txspendingprevout handler.
f7c6c6630d
kevkevinpal force-pushed on Nov 12, 2026
DrahtBot added the label CI failed on Nov 12, 2026
DrahtBot removed the label CI failed on Nov 12, 2026
DrahtBot removed the label Needs rebase on Nov 12, 2026
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-11-17 04:51 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me