This is an example of using the web3-react
package and includes running against mainnet and other L2s.
To configure the available chains, and pick an initial chain, edit the configuration file. The code should need no further modification to function.
- Run
yarn install
to install the project dependencies
- Create an API key using any of the Ethereum API providers and grab the respective RPC URL, or use the default
https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847
- Set that as the value of the
rpc
inside the config for the chains you decide to connect the dApp to.
Run yarn start
and navigate to http://localhost:3000/