defaultGasEstimator

1const defaultGasEstimator: <C>(client) => ClientMiddlewareFn;

Defined in: aa-sdk/core/src/middleware/defaults/gasEstimator.ts:19

Description default gas estimator middleware for SmartAccountClient You can override this middleware with your custom gas estimator middleware by passing it to the client constructor

Type Parameters

Type Parameter

C extends MiddlewareClient

Parameters

ParameterTypeDescription

client

C

smart account client instance to apply the middleware to

Returns

ClientMiddlewareFn

middleware execution function used to estimate gas for user operations