Similar to how the fee is returned in getblock (#18771), it should be returned in getrawtransaction.
Useful skills:
Understanding of undo data, the RPC interface and the functional tests.
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.