Content
@
https://warpcast.com/~/channel/base-seoul
0 reply
0 recast
0 reaction
Alex Kim
@alexkimr
#DailyChallenge Day 20 Well, it took me a while to decide what topic to cover today. First I wanted to analize token proces using Uniswap (Uniswap V2 Router and Uniswap V3 Quoter), but I since i use RPC for Base on infure and Uniswap V3 isn't available on Base yet, I decided to use Coingecko for fetching actual token prices. So, the code on the screenshot i provide is: - sending an HTTP request to CoinGeckoโs API. - parsing JSON response using serde_json. - extracting ETH and USDC prices in USD. - also handling errors gracefully. ..so sleepy right now๐ Good night everyone!
0 reply
0 recast
2 reactions