getDefaultGasOverrides

function getDefaultGasOverrides(
provider: Provider,
): Promise<
| {
gasPrice?: undefined;
maxFeePerGas: BigNumber;
maxPriorityFeePerGas: BigNumber;
}
| {
gasPrice: BigNumber;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
}
>;

Parameters

Type

let provider: Provider;

Returns

let returnType: Promise<
| {
gasPrice?: undefined;
maxFeePerGas: BigNumber;
maxPriorityFeePerGas: BigNumber;
}
| {
gasPrice: BigNumber;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
}
>;