Anyone know how curve fi and metamask fetch the average gas price for the transaction and how they provide the slow and fast option? I just want to know which third party they use to get these info.

1 Answer 1


I think you can find the answer in following link

It seems like they use a binary search to calculate estimated gas based on the opcodes.

  • The link is about estimating the gas limit, not the gas price.
    – Morten
    Jan 5, 2021 at 16:25
  • I was asking about gas price not limit, I know we can get it using web3 also but I guess web3 only give the average price so I just want to know how they give the fast and slow option Jan 6, 2021 at 5:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.