Const
SwitchNetwork component for selecting and switching blockchain networks.
This component renders a dropdown menu that allows users to select from a list of blockchain networks and switch the connected wallet to the selected network.
SwitchNetwork component props.
List of networks to display in the dropdown.
Icon representing the network.
Chain ID of the network.
Display name of the network.
Additional props inherited from div element.
<SwitchNetwork networks={[ { id: 1, label: "Ethereum", icon: <EthereumIcon /> }, { id: 10, label: "Optimism", icon: <OptimismIcon /> } ]}/> Copy
<SwitchNetwork networks={[ { id: 1, label: "Ethereum", icon: <EthereumIcon /> }, { id: 10, label: "Optimism", icon: <OptimismIcon /> } ]}/>
SwitchNetwork component for selecting and switching blockchain networks.
This component renders a dropdown menu that allows users to select from a list of blockchain networks and switch the connected wallet to the selected network.