[backport#15159] [RPC] Update getrawtransaction interface
Summary:
https://github.com/bitcoin/bitcoin/pull/15159/commits/04da9f4834e1651da65ceb6379950cef9450591c
Depends on D6058
This is a backport of Core PR15159
Test Plan:
ninja check-all
Reviewers: #bitcoin_abc, nakihito
Reviewed By: nakihito
Subscribers: nakihito
Differential Revision: https://reviews.bitcoinabc.org/D6062