yieldWalletIds and read from global. If you prefer a specific wallet, pass its id in yieldWalletIds and read from the per-wallet map.
Compute the period and request metrics (macOS example)
global.generated (total yield generated in the period). If you want the net change to on-platform accrued yield, display global.accruedDelta. Both are returned alongside withdrawn to support statements and audits.
Optional: restrict to a specific wallet