This adds a new boolean parameter 'decode' to the gettransaction call, which, if set to true, add a 'decoded' field to the result containing the decoded transaction
https://github.com/bitcoin/bitcoin/pull/16185/commits/7f3bb247a811582d1aa4805d8e601c19808dc7ba
Partial backport of Core PR16185