hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
14 lines • 730 B
TypeScript
import type { EthereumProvider, JsonRpcRequest, JsonRpcResponse } from "../../../../../../types/providers.js";
import type { RequestHandler } from "../../types.js";
/**
* This class automatically adjusts transaction requests to include appropriately estimated gas prices.
* It ensures that gas prices are set correctly.
*/
export declare class AutomaticGasPriceHandler implements RequestHandler {
#private;
static readonly EIP1559_BASE_FEE_MAX_FULL_BLOCKS_PREFERENCE: bigint;
static readonly EIP1559_REWARD_PERCENTILE = 50;
constructor(provider: EthereumProvider);
handle(jsonRpcRequest: JsonRpcRequest): Promise<JsonRpcRequest | JsonRpcResponse>;
}
//# sourceMappingURL=automatic-gas-price-handler.d.ts.map