accountDeployedEvent
Creates an event object for the AccountDeployed event.
import { getContractEvents } from "thirdweb";import { accountDeployedEvent } from "thirdweb/extensions/erc4337"; const events = await getContractEvents({contract,events: [ accountDeployedEvent({ userOpHash: ..., sender: ...,})],});
function accountDeployedEvent( filters: Partial<{ sender: string; userOpHash: `0x${string}` }>, readonly inputs: readonly [ { readonly indexed: true; readonly name: "userOpHash"; readonly type: "bytes32"; }, { readonly indexed: true; readonly name: "sender"; readonly type: "address"; }, { readonly name: "factory"; readonly type: "address" }, { readonly name: "paymaster"; readonly type: "address" }, ]; readonly name: "AccountDeployed"; readonly type: "event";}>;
readonly inputs: readonly [ { readonly indexed: true; readonly name: "userOpHash"; readonly type: "bytes32"; }, { readonly indexed: true; readonly name: "sender"; readonly type: "address"; }, { readonly name: "factory"; readonly type: "address" }, { readonly name: "paymaster"; readonly type: "address" }, ]; readonly name: "AccountDeployed"; readonly type: "event";}>;
The prepared event object.