---
title: "Prepare user operation"
method: POST
path: "/v2/evm/smart-accounts/{address}/user-operations"
tags: ["EVM Smart Accounts"]
---

# Prepare user operation

`POST /v2/evm/smart-accounts/{address}/user-operations`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/evm/smart-accounts/{address}/user-operations`
- Auth: HTTP bearer

Prepares a new user operation on a Smart Account for a specific network.

## Path parameters

- `address` string, required

## Request body

- object
  - `network` 'base-sepolia' | 'base' | 'arbitrum' | 'optimism' | 'zora' | 'polygon' | 'bnb' | 'avalanche' | 'ethereum' | 'ethereum-sepolia', required: The network the user operation is for.
  - `calls` EvmCall[], required: The list of calls to make from the Smart Account.
    - `to` string, required: The address the call is directed to.
    - `value` string, required: The amount of ETH to send with the call, in wei.
    - `data` string, required: The call data to send. This is the hex-encoded data of the function call consisting of the method selector and the function arguments.
    - `overrideGasLimit` string: The override gas limit to use for the call instead of the bundler's estimated gas limit.
  - `paymasterUrl` string, uri: The URL of the paymaster to use for the user operation.
  - `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.
  - `dataSuffix` string: The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.

## Response `201`

The prepared user operation.

- EvmUserOperation: A smart account operation response.
  - `network` 'base-sepolia' | 'base' | 'arbitrum' | 'optimism' | 'zora' | 'polygon' | 'bnb' | 'avalanche' | 'ethereum' | 'ethereum-sepolia', required: The network the user operation is for.
  - `userOpHash` string, required: The hash of the user operation. This is not the transaction hash, as a transaction consists of multiple user operations. The user operation hash is the hash of this particular user operation which gets signed by the owner of the Smart Account.
  - `calls` EvmCall[], required: The list of calls in the user operation.
    - `to` string, required: The address the call is directed to.
    - `value` string, required: The amount of ETH to send with the call, in wei.
    - `data` string, required: The call data to send. This is the hex-encoded data of the function call consisting of the method selector and the function arguments.
    - `overrideGasLimit` string: The override gas limit to use for the call instead of the bundler's estimated gas limit.
  - `status` 'pending' | 'signed' | 'broadcast' | 'complete' | 'dropped' | 'failed', required: The status of the user operation.
  - `transactionHash` string: The hash of the transaction that included this particular user operation. This gets set after the user operation is broadcasted and the transaction is included in a block.
  - `receipts` UserOperationReceipt[]: The list of receipts associated with the user operation.
    - `revert` UserOperationReceiptRevert: The revert data if the user operation has reverted.
      - `data` string, required: The 0x-prefixed raw hex string.
      - `message` string, required: Human-readable revert reason if able to decode.
    - `transactionHash` string: The hash of this transaction as 0x-prefixed string.
    - `blockHash` string: The block hash of the block including the transaction as 0x-prefixed string.
    - `blockNumber` integer: The block height (number) of the block including the transaction.
    - `gasUsed` string: The gas used for landing this user operation.
  - `expiresAt` string, date-time: The timestamp at which the prepared user operation expires.

## Other responses

- `400`: Invalid request.
- `403`: Access to resource forbidden.
- `404`: Not found.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 6 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 `403`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
  - …2 more
- **2026-10-16** `ff3c1fdef902`: 6 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 `403`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `404`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
  - …2 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/evm/smart-accounts/:address/user-operations/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)
