# defaultGasEstimator | @aa-sdk/core

> 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

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

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

Defined in: [aa-sdk/core/src/middleware/defaults/gasEstimator.ts:19](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/middleware/defaults/gasEstimator.ts#L19)

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

<table>
  <thead>
    <tr>
      <th align="left">Type Parameter</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `C` *extends* [`MiddlewareClient`](../type-aliases/MiddlewareClient)
      </td>
    </tr>
  </tbody>
</table>

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `client`
      </td>

      <td>
        `C`
      </td>

      <td>
        smart account client instance to apply the middleware to
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`ClientMiddlewareFn`](../type-aliases/ClientMiddlewareFn)

middleware execution function used to estimate gas for user operations