-
I able to get useFeeData and its gasPrice, I have the idea of converting it to USD but I have no way to get the latest ETH price from wagmi. Question: How do i get the latest eth price? (Does wagmi able to fetch the latest eth price?) Could I suggest to add a usePrice hook for this library? If yes, please let me know the possible implementations, I would like to make a pr on this awesome library... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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). |
Beta Was this translation helpful? Give feedback.
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