aa

Get User Ops

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)

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

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.

Example:1
chainSymbolstring

The abbreviated chain name for queries or transactions.

Example:ETH
senderstring required

Specifies the account or contract initiating the operation. If not on-chain yet, the account may need to be created.

Example:0x03D3a52d79eeB5014dFe28258e8c0978Ecd8e65c
noncestring

Anti-replay parameter.

Example:0
initCodestring

The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)

Example:0x
preVerificationGasstring

Gas units to compensate the bundler for pre-verification overhead and calldata encoding, as an integer string (ERC-4337).

Example:53576
verificationGasLimitstring

Maximum gas units for verifying the user operation (signature validation and paymaster logic), as an integer string (ERC-4337).

Example:362451
gasLimitstring

Maximum gas units for the overall user operation execution, as an integer string (ERC-4337).

Example:10000
callGasLimitstring

Maximum gas units for the main execution call of the user operation, as an integer string (ERC-4337).

Example:260611
callDatastring

The encoded data for the transaction function call or operation to be executed in this user operation.

Example:0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844
maxPriorityFeePerGasstring

Maximum priority fee (tip) per gas unit in wei to incentivize validators or bundlers, as an integer string (EIP-1559). Example: '1000000000' = 1 gwei.

Example:100000000
maxFeePerGasstring

Maximum total fee per gas unit in wei (base fee + priority fee), as an integer string (EIP-1559). Example: '20000000000' = 20 gwei.

Example:29964445250
paymasterAndDatastring

Address of the paymaster sponsoring the transaction, plus any additional data sent to the paymaster. Leave empty for self-sponsored transactions.

Example:0x
userOpsstring required

Array of user operation objects as per ERC-4337. Defines one or more operations to bundle.

bundlerstring required

The address of the bundler or beneficiary responsible for executing the user operations.

Example:0x6Fb447Ae94F5180254D436A693907a1f57696900

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "sender": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "nonce": "0",
    "initCode": "0x",
    "callData": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844",
    "callGasLimit": "260611",
    "gasLimit": "362451",
    "verificationGasLimit": "362451",
    "preVerificationGas": "53576",
    "maxFeePerGas": "29964445250",
    "maxPriorityFeePerGas": "100000000",
    "paymasterAndData": "0x",
    "signature": "0x"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.