---
title: "Get User Ops"
method: GET
path: "/defi/v1/aa/getuserops"
tags: ["aa"]
---

# Get User Ops

`GET /defi/v1/aa/getuserops`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/aa/getuserops`
- Auth: API key in header `X-API-Key`

Retrieves a user operation object that can be signed and submitted to the bundler. Used in account abstraction flows to gather the required transaction data.

> 💡 
**Compute Unit Value:** `5` (Fixed)

## Query parameters

- `chainId` '1' | '56' | '43114' | '137' | '250' | '10' | '11155420' | '42161' | '421614' | '25' | '338' | '84532' | '8453' | '43113' | '97' | '80002' | '300' | '324': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
- `chainSymbol` string: The abbreviated chain name for queries or transactions.
- `sender` string, required: Specifies the account or contract initiating the operation. If not on-chain yet, the account may need to be created.
- `nonce` string: Anti-replay parameter.
- `initCode` string: The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
- `preVerificationGas` string: Gas units to compensate the bundler for pre-verification overhead and calldata encoding, as an integer string (ERC-4337).
- `verificationGasLimit` string: Maximum gas units for verifying the user operation (signature validation and paymaster logic), as an integer string (ERC-4337).
- `gasLimit` string: Maximum gas units for the overall user operation execution, as an integer string (ERC-4337).
- `callGasLimit` string: Maximum gas units for the main execution call of the user operation, as an integer string (ERC-4337).
- `callData` string: The encoded data for the transaction function call or operation to be executed in this user operation.
- `maxPriorityFeePerGas` string: Maximum priority fee (tip) per gas unit in wei to incentivize validators or bundlers, as an integer string (EIP-1559). Example: '1000000000' = 1 gwei.
- `maxFeePerGas` string: Maximum total fee per gas unit in wei (base fee + priority fee), as an integer string (EIP-1559). Example: '20000000000' = 20 gwei.
- `paymasterAndData` string: Address of the paymaster sponsoring the transaction, plus any additional data sent to the paymaster. Leave empty for self-sponsored transactions.
- `userOps` string, required: Array of user operation objects as per ERC-4337. Defines one or more operations to bundle.
- `bundler` string, required: The address of the bundler or beneficiary responsible for executing the user operations.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
