Understanding createUserOp
createUserOpwill 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, eitherBICONOMY,CYBERCONNECT, orSIMPLE.version- string, either1.0.0or2.0.0.ownerAddress- string.biconomyApiKey- (optional, for using Biconomy’s Paymaster), string.
- Array of transactions:
- Standard transaction object.
- Optionally, a token
feeQuoteobject, retrieved fromgetFeeQuotes, only used if you’re paying the gas fee in an ERC-20 token. - Token paymaster address - (optional), string.
- Account config object:
Query example
JSON
Authorizations
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.
Version of the JSON-RPC protocol, should be 2.0.
Example:
"2.0"
The request identifier.
Example:
1
API method being called.
Available options:
particle_aa_createUserOp Parameters for the API method call. Parameters for creating a user operation.
Response
200 - application/json
Successful response with created user operation details.
