End User Account Management

Add EVM smart account to end user

Changed on

Creates an EVM smart account for an existing end user. The backend will create a new EVM EOA account to serve as the owner of the smart account. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.

post/v2/end-users/{userId}/evm-smart-account

Request

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

Path parameters

userId, string required

The ID of the end user to add the smart account to.

Headers

X-Wallet-Auth, string required

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.

Request body

object required
enableSpendPermissions, boolean

If true, enables spend permissions for the EVM smart account.

Example request

{
  "enableSpendPermissions": true
}

Response

Successfully added EVM smart account to end user.

object required
evmSmartAccount, EndUserEvmSmartAccount required

Information about an EVM smart account associated with an end user.

Example response

{
  "evmSmartAccount": {
    "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "ownerAddresses": [
      "0x1234567890abcdef1234567890abcdef12345678",
      "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd"
    ],
    "createdAt": "2025-01-15T10:30:00Z"
  }
}

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

    5 more changes in this revision