erc7677Middleware
Middleware function for interacting with ERC-7677 enabled clients. It supports resolving paymaster and data fields for user operations. This middleware assumes that your RPC provider supports the ERC-7677 methods (pm_getPaymasterStubData and pm_getPaymasterData).
Import
Usage
Parameters
params
Erc7677MiddlewareParams<TContext>
Middleware parameters including context function or object. Context can be resolved dynamically by passing in a function which takes in the context at the time of sending a user op
Returns
Pick<ClientMiddlewareConfig, "dummyPaymasterAndData" | "paymasterAndData">
An object containing middleware functions dummyPaymasterAndData
and paymasterAndData
for processing user operations with the paymaster data