alchemyFeeEstimator
Defined in: account-kit/infra/src/middleware/feeEstimator.ts:32
Function that estimates the transaction fees using Alchemy methods for a given client. It fetches the latest block and estimates the max priority fee per gas, applying any overrides or fee options provided.
Example
Parameters
Returns
ClientMiddlewareFn
A middleware function that takes a transaction structure and fee options, and returns the augmented structure with estimated fees