mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-10-08 19:50:21 +02:00
This adds the `generated` and `height` fields to the JSON REST endpoint `/rest/spenttxouts/BLOCKHASH.json` to match the prevout output of the getblock RPC with verbosity 3. The information for these fields is already available, but just was not exposed. The binary and hex formats aren't changed (here) to not break backwards compatibility with consumers of these endpoints. See the discussion in https://github.com/bitcoin/bitcoin/pull/32540#issuecomment-5665279713
332 B
332 B
Updated REST APIs
- The
/rest/spenttxouts/BLOCKHASH.jsonendpoint now includes thegenerated(whether the previous output is a coinbase output) andheightfields for each previous output, matching theprevoutobjects of thegetblockRPC with verbosity 3. The binary and hex formats are unchanged.