Doesn't sendrawtransaction suffice for the purpose? Just pass a signed raw transaction in hex to the RPC.
OK, when I was scouring the RPC help of the list of methods, I did not consider sendrawtransaction because I was looking for RPCs that took a txid (quite literally "txid" as that is how the parameters are labelled in the short description).
But what if I'm using an air-gapped wallet that doesn't provide a raw transaction, but just a txhash? Perhaps the
hexstr argument of
sendrawtransaction can be amended to take the txhash as an alternative? This is the only way I think this funcionallity an be inserted if another RPC call cannot be created.
I know its already returned as the result, but it's not possible to obtain the raw transaction bytes in all wallets.