Alchemy Logo

defaultPaymasterAndData

const defaultPaymasterAndData: ClientMiddlewareFn;

Defined in: aa-sdk/core/src/middleware/defaults/paymasterAndData.ts:12

Middleware function that sets the paymasterAndData field in the given struct based on the entry point version of the account. This is the default used by createSmartAccountClient and is not necessary to be used directly.

the user operation structure to be modified

an object containing the account information

a promise that resolves to the modified user operation structure

Was this page helpful?