Replies: 4 comments 6 replies
-
In v6 you use This also works in v5, which includes gasPrice in the fee data for legacy networks. :) |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hi @ricmoo! |
Beta Was this translation helpful? Give feedback.
2 replies
-
const price=(await Provider.getFeeData()).gasPrice
const price=(await Provider.getFeeData()).maxFeePerGas
const price=(await Provider.getFeeData()).maxPriorityFeePerGas |
Beta Was this translation helpful? Give feedback.
0 replies
-
Added docs with 5aba496. Thanks! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ethers Version
6.6.2
Search Terms
No response
Describe the Problem
their is no other function that replace Provider.getGasPrice(); function
Code Snippet
Provider.getGasPrice();
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions