rpc: add coinbase_tx field to getblock

This adds a "coinbase_tx" field to the getblock RPC result, starting
at verbosity level 1. It contains only fields guaranteed to be small,
i.e. not the outputs.
This commit is contained in:
Sjors Provoost
2026-02-09 17:19:04 +01:00
parent 41b9b76cce
commit e0463b4e8c
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
Updated RPCs
------------
- The `getblock` RPC now returns a `coinbase_tx` object at verbosity levels 1, 2,
and 3. It contains `version`, `locktime`, `sequence`, `coinbase` and
`witness`. This allows for efficiently querying coinbase
transaction properties without fetching the full transaction data at
verbosity 2+. (#34512)