Skip to content

Allow Connection only to rinkeby and local 8545 #259

Answered by tmm
Hussainzz asked this question in Q&A
Discussion options

You must be logged in to vote

You can’t completely restrict the chain a wallet is connected to (since wallets can choose whatever chain they want), but you can set supported chains for connectors. When someone connects or uses a chain that is not specified, unsupported is set to true. You can use this value to restrict access or notify the user to switch chains (useNetwork can help with this).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hussainzz
Comment options

Answer selected by tmm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants