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)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/aa/getuserops
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
The abbreviated chain name for queries or transactions.
Specifies the account or contract initiating the operation. If not on-chain yet, the account may need to be created.
Anti-replay parameter.
The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
Gas units to compensate the bundler for pre-verification overhead and calldata encoding, as an integer string (ERC-4337).
Maximum gas units for verifying the user operation (signature validation and paymaster logic), as an integer string (ERC-4337).
Maximum gas units for the overall user operation execution, as an integer string (ERC-4337).
Maximum gas units for the main execution call of the user operation, as an integer string (ERC-4337).
The encoded data for the transaction function call or operation to be executed in this user operation.
Maximum priority fee (tip) per gas unit in wei to incentivize validators or bundlers, as an integer string (EIP-1559). Example: '1000000000' = 1 gwei.
Maximum total fee per gas unit in wei (base fee + priority fee), as an integer string (EIP-1559). Example: '20000000000' = 20 gwei.
Address of the paymaster sponsoring the transaction, plus any additional data sent to the paymaster. Leave empty for self-sponsored transactions.
Array of user operation objects as per ERC-4337. Defines one or more operations to bundle.
The address of the bundler or beneficiary responsible for executing the user operations.
Response
Successful response
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.