End User Accounts

Send USDC on EVM

Changed on

Sends USDC from an end user's EVM account (EOA or Smart Account) to a recipient address on a supported EVM network. This endpoint simplifies USDC transfers by automatically handling contract resolution, decimal conversion, gas estimation, and transaction encoding. The amount field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").

post/v2/embedded-wallet-api/end-users/{userId}/evm/{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 0x-prefixed address of the EVM account (EOA or Smart Account) to send USDC from. The address does not need to be checksummed.

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 0x-prefixed 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, 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'avalanche' | 'polygon' | 'optimism' | 'arbitrum' | 'arbitrum-sepolia' | 'world' | 'world-sepolia' required

The EVM network to send USDC on.

useCdpPaymaster, boolean

Whether to use CDP Paymaster to sponsor gas fees. Only applicable for EVM Smart Accounts. When true, the transaction gas will be paid by the Paymaster, allowing users to send USDC without holding native gas tokens. Ignored for EOA accounts. Cannot be used together with paymasterUrl.

paymasterUrl, string uri

Optional custom Paymaster URL to use for gas sponsorship. Only applicable for EVM Smart Accounts. This allows you to use your own Paymaster service instead of CDP's Paymaster. Cannot be used together with useCdpPaymaster.

paymasterContext, PaymasterContext

The ERC-7677 context object forwarded to the paymaster service as part of the paymasterService capability. The fields in this object are defined by the paymaster service provider; CDP forwards them to the paymaster unchanged. This field is only valid when a paymaster is configured for the request. Providing paymasterContext without a paymaster configured results in an invalid_request error.

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.

Example request

{
  "to": "0x1234567890123456789012345678901234567890",
  "amount": "1.50",
  "network": "base-sepolia",
  "useCdpPaymaster": true,
  "paymasterUrl": "https://api.developer.coinbase.com/rpc/v1/base/AbCdEf123456",
  "paymasterContext": {
    "policyId": "962b252c-a726-4a37-8d86-333ce0a07299"
  },
  "walletSecretId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}

Response

Successfully sent transaction.

object required
transactionHash, string nullable

The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead).

userOpHash, string nullable

The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead).

Example response

{
  "transactionHash": "0xf8f98fb6726fc936f24b2007df5cb20e2b8444ff3dfaa2a929335f432a9be2e7",
  "userOpHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}

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