import { JsonRpcProvider } from "@ethersproject/providers" ; import { utils } from "ethers" ; const GAS = "5" ; export const getGasPrice = async ( provider ) => { const gasPrice = await provider . getGasPrice ( ) ; const convertGas = utils . parseUnits ( GAS , "gwei" ) ; return gasPrice . add ( convertGas ) ; } ;