hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
13 lines • 739 B
TypeScript
import type { JsonRpcRequest, JsonRpcResponse } from "../../../../../../types/providers.js";
import type { RequestHandler } from "../../types.js";
import type { PrefixedHexString } from "@nomicfoundation/hardhat-utils/hex";
/**
* This class ensures that a fixed gas price is applied to transaction requests.
* For `eth_sendTransaction` requests, it sets the gasPrice field with the value provided via the class constructor, if it hasn't been specified already.
*/
export declare class FixedGasPriceHandler implements RequestHandler {
#private;
constructor(gasPrice: PrefixedHexString);
handle(jsonRpcRequest: JsonRpcRequest): Promise<JsonRpcRequest | JsonRpcResponse>;
}
//# sourceMappingURL=fixed-gas-price-handler.d.ts.map