Replies: 1 comment 4 replies
-
If user mean 11 "gwei", then number actually looks like Which networks would your code be targeted to? If it's always EIP1559: then you can specify: // if wallet is connected to a provider it should populate max priority fee, otherwise have to be specified
await wallet.sendTransaction({
maxFeePerGas: ethers.utils.parseUnits('11', 'gwei'),
})
// for max fee amount estimation
const gasFee = feeData.maxFeePerGas.mul(gasLimit); But if network does not support EIP1559, then you have to specify gasPrice. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If the user enters 11, which one is it?
If there is no input box, use getFeeData to get gasPrice. What are the estimated gasFee that are presented to the user?
Beta Was this translation helpful? Give feedback.
All reactions