This kind of utility function should be exposed to users of Wallet. others like balance have been and this is technically a regression since TransactionDetails used to offer this information.
There may be opportunities to further delegate this to the txout index elsewhere in wallet since I see that "sent" and "received" being calculated internally in places.
The same is true for calculate_fee of TxGraph -- it should be there on Wallet.
This kind of utility function should be exposed to users of
Wallet. others likebalancehave been and this is technically a regression sinceTransactionDetailsused to offer this information.There may be opportunities to further delegate this to the txout index elsewhere in wallet since I see that "sent" and "received" being calculated internally in places.
The same is true for
calculate_feeofTxGraph-- it should be there onWallet.