This adds a REST endpoint to allow broadcasting a transaction:
POST /rest/broadcast.hex
This would make it possible to build electrum indexers that access the REST interface only, eliminating the need of accessing the RPC interface. This would improve UX (no need to authenticate) and security (only a small subset of methods are available from the REST interface). See also #31065 (comment)
The transaction hex must be passed in the body of the request; on success, the txid of the broadcasted transaction will be returned.
Fixes #31017