Alchemy Logo

defaultGasEstimator

const 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 Parameter

C extends MiddlewareClient

ParameterTypeDescription

client

C

smart account client instance to apply the middleware to

ClientMiddlewareFn

middleware execution function used to estimate gas for user operations

Was this page helpful?