RPC Problem About react and metamask on Linea

I am developing a dapp on Linea, using react. When I need to monitor the linea network of metamask, if the user has not joined the network, I need to prompt the user to join the network in metamask and provide network information, but the rpc url: mainnet.infura… is not a public rpc, please provide an official public mainnet rpc, so that my dapp can easily detect and recommend the network.

5 Likes

I got it, it’s not rpc.maint.linea… it’s rpc.linea…

3 Likes