Learn how to use the createUserOp JSON-RPC method.
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:
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.feeQuote
object, retrieved from getFeeQuotes
, only used if you’re paying the gas fee in an ERC-20 token.Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Request to create a user operation.
The body is of type object
.
Successful response with created user operation details.
The response is of type object
.