defaultGasEstimator

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

Import

1import { defaultGasEstimator } from "@aa-sdk/core";

Parameters

client

MiddlewareClient smart account client instance to apply the middleware to

Returns

ClientMiddlewareFn middleware execution function used to estimate gas for user operations