type SendSolanaUsdcOptions = {
solanaAccount: SolanaAddress;
to: SolanaAddress;
amount: string;
network: SendSolanaUsdcNetwork;
createRecipientAta?: boolean;
useCdpSponsor?: boolean;
idempotencyKey?: string;
};
Properties
| Property | Type | Description |
|---|---|---|
solanaAccount | SolanaAddress | The Solana account to send USDC from. |
to | SolanaAddress | The recipient address (base58 encoded). |
amount | string | The amount of USDC to send in human-readable format (e.g., “1.50” for 1.5 USDC). |
network | SendSolanaUsdcNetwork | The network to send USDC on. |
createRecipientAta? | boolean | Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn’t exist. Default false Important: Creating an ATA requires true if you want to ensure the transaction succeeds by creating the recipient’s ATA if needed - Set to false (default) to only send if the recipient already has a USDC token account If false and the recipient doesn’t have an ATA, the transaction will fail with a clear error message. |
useCdpSponsor? | boolean | Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fee. |
idempotencyKey? | string | Optional idempotency key for safe retries. |