// Simplest usage - auto-selects sender when user has exactly one account
const result = await sendUsdc({
to: "0x1234567890123456789012345678901234567890",
amount: "10.00",
network: "base-sepolia",
});
// Send from Smart Account with gas sponsorship
const smartResult = await sendUsdc({
from: user.evmSmartAccountObjects[0].address,
to: "0x1234567890123456789012345678901234567890",
amount: "10.00",
network: "base",
useCdpPaymaster: true,
});
// Result: { type: "evm-smart", userOpHash: "0x..." }
// Send from Solana account
const solanaResult = await sendUsdc({
from: user.solanaAccountObjects[0].address,
to: "ExXhNkgYf6efh7YyqDRVxPZuzafobao1A74drUdp8trd",
amount: "10.00",
network: "solana-devnet",
createRecipientAta: true,
});
// Result: { type: "solana", transactionSignature: "..." }