wallet_getNetwork
Get the network the wallet is currently connected to
Last updated
Get the network the wallet is currently connected to
Last updated
Your app can fetch the networks that the user's wallet is currently connected to, using wallet_getNetwork
.
The app must have first connected to the wallet and obtained account read permissions.
The response contains network information for each of the wallet's supported chains:
An example response: