UserOp
Execute UserOp
Learn how to execute user operations using the Okto SDK.
The executeUserOp()
method is available on the OktoClient instance and is used to submit signed user operations to the blockchain. This method is used to execute transactions after they have been signed.
Example
Note
For error handling:
- Use the error code to debug issues. Check out the SDK errors and warnings documentation
- For help, navigate to the troubleshooting guide to contact support
Method Overview
Methods | Description |
---|---|
async oktoClient.executeUserOp | Execute a signed user operation |
Execute UserOp
async oktoClient.executeUserOp(userop: UserOp)
executes a signed user operation on the blockchain.
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
userop | SignedUserOp | The signed user operation to be executed | Yes |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Promise<string> | Returns the job ID of the executed user operation |