hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
15 lines • 794 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);
isSupportedMethod(jsonRpcRequest: JsonRpcRequest): boolean;
handle(jsonRpcRequest: JsonRpcRequest): Promise<JsonRpcRequest | JsonRpcResponse>;
}
//# sourceMappingURL=automatic-gas-price-handler.d.ts.map