Content
@
0 reply
0 recast
0 reaction
Alex Kim
@alexkimr
#DailyChallenge Day 12 Today, I decided to write some client-side code using the Base Chain. My goal was to interact with the Base Mainnet, fetch blockchain data, and display it in the terminal: - Connected to Base Mainnet via Infura using an RPC URL. - Fetched Block Number to confirm the connection. - Checked ETH Balance with get_balance. - Identified USDC Contract on BaseScan. - Fetched USDC Balance using balanceOf with the correct ERC-20 ABI. Here's the Github link where you can check out the source code: https://github.com/alekseykim-dev/Rust-blockchain/tree/main/layer2
0 reply
0 recast
4 reactions