Skip to main content
POST
createUserOp

Understanding createUserOp

  • createUserOp will construct and return a UserOperation object and hash using a transaction or collection of transactions, alongside smart account and fee payment information. It takes:
    • Account config object:
      • name - string, either BICONOMY, CYBERCONNECT, or SIMPLE.
      • version - string, either 1.0.0 or 2.0.0.
      • ownerAddress - string.
      • biconomyApiKey - (optional, for using Biconomy’s Paymaster), string.
    • Array of transactions:
      • Standard transaction object.
    • Optionally, a token feeQuote object, retrieved from getFeeQuotes, only used if you’re paying the gas fee in an ERC-20 token.
    • Token paymaster address - (optional), string.

Query example

JSON

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to create a user operation.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

method
enum<string>
required

API method being called.

Available options:
particle_aa_createUserOp
params
string · object · object · string[]
required

Parameters for creating a user operation.

Response

200 - application/json

Successful response with created user operation details.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

result
object
required
chainId
integer

The blockchain chain ID.

Example:

80001