UserOperation
Utility functions and types for working with ERC-4337 User Operations.
Functions
Name | Description |
---|---|
UserOperation.from | Instantiates a UserOperation.UserOperation from a provided input. |
UserOperation.fromRpc | Converts an UserOperation.Rpc to an UserOperation.UserOperation . |
UserOperation.getSignPayload | Obtains the signing payload for a UserOperation.UserOperation . |
UserOperation.hash | Hashes a UserOperation.UserOperation . This is the "user operation hash". |
UserOperation.toPacked | Transforms a User Operation into "packed" format. |
UserOperation.toRpc | Converts a UserOperation.UserOperation to a UserOperation.Rpc . |
Types
Name | Description |
---|---|
UserOperation.Packed | Packed User Operation. |
UserOperation.Rpc | RPC User Operation type. |
UserOperation.RpcTransactionInfo | RPC Transaction Info. |
UserOperation.RpcV06 | RPC User Operation on EntryPoint 0.6 |
UserOperation.RpcV07 | RPC User Operation on EntryPoint 0.7 |
UserOperation.TransactionInfo | Transaction Info. |
UserOperation.UserOperation | User Operation. |
UserOperation.V06 | Type for User Operation on EntryPoint 0.6 |
UserOperation.V07 | Type for User Operation on EntryPoint 0.7 |