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

        async Task<JsonRpcResponse<ExecuteResult>> ExecuteUserOp(UserOp signedUserOp)
        {
            // Execute UserOp
            JsonRpcResponse<ExecuteResult> txHash = await UserOpExecute.ExecuteUserOp(signedUserOp, signedUserOp.signature);
            return txHash;
        }

Note

For error handling:

Method Overview

MethodsDescription
async oktoClient.executeUserOpExecute a signed user operation

Execute UserOp

async oktoClient.executeUserOp(userop: UserOp) executes a signed user operation on the blockchain.

Parameters

ParameterTypeDescriptionRequired
useropUserOpThe signed user operation to be executedYes

Response

Success Response

Field NameTypeDescription
resultTask<JsonRpcResponse<ExecuteResult>>Returns the job ID of the executed user operation

On this page