Please describe the feature you’d like to see added.
Currently, createrawtransaction
RPC creates only v2 raw transaction, i.e. the first byte of the serialised transaction hex is 02
. It’d be helpful for the RPC to conditionally create V3 raw transactions if such intent is passed in the arguments of the RPC call.
Is your feature related to a problem, if so please describe it.
No response
Describe the solution you’d like
- A new argument to the RPC call can be passed that allows the user to create v3 raw transactions conditionally. It can be either a
bool isV3
orint version
(with sanity checks) whichever is most compatible with the current RPC nomenclature. - Default transaction version need not change as part of this solution.
Describe any alternatives you’ve considered
No response
Please leave any additional context
Need to double check for conformity of v3 raw transactions with other RPCs. Though I didn’t notice any issue with signing and broadcasting v3 transactions after manually updating the hex during testing TRUC transactions while coming up with V28 Testing Guide.