Please describe the feature you’d like to see added.
I would like to have the possibility to broadcast a transaction via the REST interface which is currently not possible https://github.com/bitcoin/bitcoin/blob/master/doc/REST-interface.md
Is your feature related to a problem, if so please describe it.
An indexer like the ones for the electrum protocol should work without having access to the RPC interface, I think the only missing method from the REST interface is the tx broadcast.
Describe the solution you’d like
I would like another REST end point like the following:
POST /tx
Broadcast a raw transaction to the network.
The transaction should be provided as hex in the request body. The txid will be returned on success.
(hex is used for similarity with esplora API, binary would be ok)
Describe any alternatives you’ve considered
Using RPC requires an authenticated connection. Using the p2p network requires to know an additional endpoint and the peering from the indexer
Please leave any additional context
The REST interface already has risks https://github.com/bitcoin/bitcoin/blob/master/doc/REST-interface.md#risks and I don’t think would be more risky to have tx broadcast
Transaction packages may be added in another endpoint