pub fn transparent_sent_output_recipient<AccountId, P, E>(
params: &P,
output: &WalletTransparentOutput<AccountId>,
select_receiving_address: impl FnOnce(AccountId, &Receiver) -> Result<Option<ZcashAddress>, E>,
) -> Result<Option<(AccountId, Recipient<AccountId>)>, E>where
AccountId: Copy,
P: Parameters,Expand description
Returns the account that funded a transparent output and the recipient to record against it,
or None if no wallet account is known to have funded it.
An output paying an address of a wallet account is an internal transfer; one paying any other
address is a send to an external recipient, reported at the wallet address containing the
paid receiver where select_receiving_address finds one and at the bare transparent address
otherwise.
select_receiving_address returns the most likely wallet address containing the given
receiver, or None if the receiver belongs to no address of that account. It is consulted in
every feature configuration. The transparent-inputs feature governs only whether an output
can be recognized as paying a wallet account: without it none is, so every output is recorded
as a send to an external recipient, still reported at the address containing the receiver.