Skip to content

How to get current ethereum price and convert useFeeData to usd unit? #198

Answered by tmm
liho00 asked this question in Q&A
Discussion options

You must be logged in to vote

There's no way to get the current price using ethers.js (AFAIK). In the meantime, you could use the CoinGecko API for your project (free up to 50 requests/second).

https://www.coingecko.com/en/api/documentation

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liho00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants