Skip to content

UserOperation

Utility functions and types for working with ERC-4337 User Operations.

Functions

NameDescription
UserOperation.fromInstantiates a UserOperation.UserOperation from a provided input.
UserOperation.fromRpcConverts an UserOperation.Rpc to an UserOperation.UserOperation.
UserOperation.getSignPayloadObtains the signing payload for a UserOperation.UserOperation.
UserOperation.hashHashes a UserOperation.UserOperation. This is the "user operation hash".
UserOperation.toPackedTransforms a User Operation into "packed" format.
UserOperation.toRpcConverts a UserOperation.UserOperation to a UserOperation.Rpc.

Types

NameDescription
UserOperation.PackedPacked User Operation.
UserOperation.RpcRPC User Operation type.
UserOperation.RpcTransactionInfoRPC Transaction Info.
UserOperation.RpcV06RPC User Operation on EntryPoint 0.6
UserOperation.RpcV07RPC User Operation on EntryPoint 0.7
UserOperation.TransactionInfoTransaction Info.
UserOperation.UserOperationUser Operation.
UserOperation.V06Type for User Operation on EntryPoint 0.6
UserOperation.V07Type for User Operation on EntryPoint 0.7