End User Accounts

Send USDC on Solana

Changed on

Sends USDC from an end user's Solana account to a recipient address on the Solana network. This endpoint simplifies USDC transfers by automatically handling mint resolution, Associated Token Account (ATA) creation, decimal conversion, and transaction encoding. The amount field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50"). Use the optional createRecipientAta parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.

post/v2/embedded-wallet-api/end-users/{userId}/solana/{address}/send/{asset}

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

userId, string required

The ID of the end user.

address, string required

A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).

Example:0x742d35Cc6634C0532925a3b844Bc454e4438f44e

The base58 encoded address of the Solana account to send USDC from.

asset, 'usdc' required

The symbol of the asset (e.g., eth, usd, usdc, usdt).

Example:usd

The asset to send. Currently only "usdc" is supported.

Query parameters

projectID, string
Example:8e03978e-40d5-43e8-bc93-6894a57f9324

The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).

Headers

X-Wallet-Auth, string

A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

X-Developer-Auth, string

A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.

Request body

object required
to, string required

The base58 encoded address of the recipient.

amount, string required

The amount of USDC to send as a decimal string (e.g., "1.5" or "25.50").

network, 'solana' | 'solana-devnet' required

The Solana network to send USDC on.

createRecipientAta, boolean

Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn't exist. When true, the sender pays the rent-exempt minimum to create the recipient's USDC ATA. When false, the transaction will fail if the recipient doesn't have a USDC ATA.

walletSecretId, string

Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.

useCdpSponsor, boolean

Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees.

Example request

{
  "to": "ExXhNkgYf6efh7YyqDRVxPZuzafobao1A74drUdp8trd",
  "amount": "1.50",
  "network": "solana-devnet",
  "createRecipientAta": true,
  "walletSecretId": "e051beeb-7163-4527-a5b6-35e301529ff2",
  "useCdpSponsor": true
}

Response

Successfully sent transaction.

object required
transactionSignature, string required

The base58 encoded transaction signature.

Example response

{
  "transactionSignature": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    6 more changes in this revision