Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

Switch Network #428

Closed
Closed

Description

@damianlluch

Hello, I would like to know how I can do with this library to make a network switch that I need the user to connect to.

Thanks

Activity

  1. NoahZinsmeister commented on Feb 24, 2022

    @NoahZinsmeister
    Contributor

    hey @damianlluch , this depends on your connector - but the good news is that the complexity is mostly abstracted for you. typically, if a connector's activate method takes something like a chainId parameter (see e.g. https://github.com/NoahZinsmeister/web3-react/blob/main/packages/metamask/src/index.ts#L109), the connector will handle the relevant network switching logic (in this case, using wallet_switchEthereumChain)

  2. locked and limited conversation to collaborators on Feb 24, 2022
  3. converted this issue into a discussion #434 on Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions