Transfer Targets
The SDK returns transfer targets for deposits and repayments. Your UI should render the target based on its discriminator.
Native Address Target
Use target.address when the target is an external-chain address:
if (target.type === "nativeAddress") {
showAddress(target.address);
}
ICRC Account Target
Use target.account when the target is an ICRC account:
if (target.type === "icrcAccount") {
showAccount(target.account);
}
Each target also includes poolId, asset, chain, and action. Use those fields to validate the UI label before the user sends funds.