This PR adds a new parameter to the gettransaction call : decode. If set to true, it will add a new decoded field to the response. This mimics the behavior of getrawtransaction's verbose argument to avoid using 2 calls if we want to decode a wallet transaction (gettransaction then decoderawtransaction).
Fix #16181 .