type SendUsdcOptions =
| {
from: EvmAddress;
to: EvmAddress;
amount: string;
network: SendEvmUsdcNetwork;
useCdpPaymaster?: boolean;
paymasterUrl?: string;
idempotencyKey?: string;
}
| {
from: SolanaAddress;
to: SolanaAddress;
amount: string;
network: SendSolanaUsdcNetwork;
createRecipientAta?: boolean;
idempotencyKey?: string;
}
| {
to: EvmAddress;
amount: string;
network: SendEvmUsdcNetwork;
useCdpPaymaster?: boolean;
paymasterUrl?: string;
idempotencyKey?: string;
}
| {
to: SolanaAddress;
amount: string;
network: SendSolanaUsdcNetwork;
createRecipientAta?: boolean;
idempotencyKey?: string;
};
Type declaration
{
from: EvmAddress;
to: EvmAddress;
amount: string;
network: SendEvmUsdcNetwork;
useCdpPaymaster?: boolean;
paymasterUrl?: string;
idempotencyKey?: string;
}
| Name | Type | Description |
|---|---|---|
from | EvmAddress | Explicitly sending from an EVM address (EOA or Smart Account). |
to | EvmAddress | Recipient EVM address. |
amount | string | The amount of USDC to send (e.g., “1.50”). |
network | SendEvmUsdcNetwork | EVM network to send on. |
useCdpPaymaster? | boolean | Whether to use CDP Paymaster to sponsor gas fees (Smart Accounts only). |
paymasterUrl? | string | Optional custom Paymaster URL (Smart Accounts only). |
idempotencyKey? | string | Optional idempotency key for safe retries. |
{
from: SolanaAddress;
to: SolanaAddress;
amount: string;
network: SendSolanaUsdcNetwork;
createRecipientAta?: boolean;
idempotencyKey?: string;
}
| Name | Type | Description |
|---|---|---|
from | SolanaAddress | Explicitly sending from a Solana address. |
to | SolanaAddress | Recipient Solana address. |
amount | string | The amount of USDC to send (e.g., “1.50”). |
network | SendSolanaUsdcNetwork | Solana network to send on. |
createRecipientAta? | boolean | Whether to create recipient’s ATA if needed (~0.002 SOL cost). |
idempotencyKey? | string | Optional idempotency key for safe retries. |
{
to: EvmAddress;
amount: string;
network: SendEvmUsdcNetwork;
useCdpPaymaster?: boolean;
paymasterUrl?: string;
idempotencyKey?: string;
}
| Name | Type | Description |
|---|---|---|
to | EvmAddress | Auto-select mode for EVM - sender address will be automatically selected if exactly one account exists. |
amount | string | The amount of USDC to send (e.g., “1.50”). |
network | SendEvmUsdcNetwork | EVM network to send on. |
useCdpPaymaster? | boolean | Whether to use CDP Paymaster (only used if Smart Account is selected). |
paymasterUrl? | string | Optional custom Paymaster URL (only used if Smart Account is selected). |
idempotencyKey? | string | Optional idempotency key for safe retries. |
{
to: SolanaAddress;
amount: string;
network: SendSolanaUsdcNetwork;
createRecipientAta?: boolean;
idempotencyKey?: string;
}
| Name | Type | Description |
|---|---|---|
to | SolanaAddress | Auto-select mode for Solana - sender address will be automatically selected if exactly one account exists. |
amount | string | The amount of USDC to send (e.g., “1.50”). |
network | SendSolanaUsdcNetwork | Solana network to send on. |
createRecipientAta? | boolean | Whether to create recipient’s ATA if needed (~0.002 SOL cost). |
idempotencyKey? | string | Optional idempotency key for safe retries. |