userOperationRevertReasonEvent

Creates an event object for the UserOperationRevertReason event.

Example

import { getContractEvents } from "thirdweb";
import { userOperationRevertReasonEvent } from "thirdweb/extensions/erc4337";
const events = await getContractEvents({
contract,
events: [
userOperationRevertReasonEvent({
userOpHash: ...,
sender: ...,
})
],
});

Parameters

Returns

The prepared event object.