Coding task · Blockchain and Web3 course · Module 3: Ethereum & EVM

RPC Provider

Create a connection to Ethereum using ethers.js and a JSON-RPC provider

Task

Implement setupProvider(rpcUrl) that creates a JsonRpcProvider and tests the connection with the getBlockNumber() method