---
title: "Create EIP-7702 delegation for end user EVM account"
method: POST
path: "/v2/embedded-wallet-api/end-users/{userId}/evm/eip7702/delegation"
tags: ["End User Accounts"]
---

# Create EIP-7702 delegation for end user EVM account

`POST /v2/embedded-wallet-api/end-users/{userId}/evm/eip7702/delegation`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/embedded-wallet-api/end-users/{userId}/evm/eip7702/delegation`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Creates an EIP-7702 delegation for an end user's EVM EOA account, upgrading it with smart account capabilities.

This endpoint:
- Retrieves delegation artifacts from onchain
- Signs the EIP-7702 authorization for delegation
- Assembles and submits a Type 4 transaction
- Creates an associated smart account object

The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.

## Path parameters

- `userId` string, required

## Query parameters

- `projectID` string

## Headers

- `X-Wallet-Auth` string
- `X-Idempotency-Key` string
- `X-Developer-Auth` string

## Request body

- object
  - `address` string, required: The 0x-prefixed address of the EVM account to delegate.
  - `network` 'base-sepolia' | 'base' | 'arbitrum' | 'optimism' | 'polygon' | 'ethereum' | 'ethereum-sepolia', required: The network for the EIP-7702 delegation.
  - `enableSpendPermissions` boolean: Whether to configure spend permissions for the upgraded, delegated account. When enabled, the account can grant permissions for third parties to spend on its behalf.
  - `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.

## Response `201`

Delegation operation created successfully.

- object
  - `delegationOperationId` string, uuid, required: The unique identifier for the delegation operation. Use this to poll the operation status.

## Other responses

- `400`: Invalid request.
- `401`: Unauthorized.
- `402`: A payment method is required to complete this operation.
- `403`: The request was rejected due to a delegation issue. The errorType field indicates the specific reason.
- `404`: EVM account not found.
- `409`: Account already delegated on the given network.
- `422`: Idempotency key conflict.
- `429`: Rate limit exceeded.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 11 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `401`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `402`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `403`
  - …7 more
- **2026-10-16** `ff3c1fdef902`: 11 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `401`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `402`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `403`
  - …7 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/embedded-wallet-api/end-users/:userId/evm/eip7702/delegation/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
