pub fn detect_wallet_transparent_outputs<P, AccountId, E>(
params: &P,
tx: &Transaction,
mined_height: Option<BlockHeight>,
funding_account: Option<AccountId>,
find_account_for_address: impl Fn(&TransparentAddress) -> Result<Option<(AccountId, Option<TransparentKeyScope>)>, E>,
) -> Result<Vec<WalletTransparentOutput<AccountId>>, E>Expand description
Returns the transparent outputs of tx for which the wallet should store records: those
paying an address of a wallet account, and, when funding_account is given, those paying
anyone else.
Each returned output carries the account that received it (None for a recipient outside the
wallet), the key scope at which the receiving address was derived, and funding_account. An
output whose script names no address the wallet understands is omitted.
find_account_for_address resolves a transparent address to the wallet account controlling
it, and the key scope at which it was derived.