You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have our own testnet instance and we hope our app can alert users that they are using an unexpected network in their stacks wallet
So we hope @stacks/connect can provide some API to make the app able to know which network users are using, just like connect event and chainChanged event of MetaMask
Maybe we can do it like this:
interfaceNetworkInfo{networkAddress: string}interfaceUserSession{// other properties ...// return network info, or throw an error if users not signed ingetNetworkInfo(): Promise<NetworkInfo>}interfaceAuthOptions{// other properties ...onNetworkChanged: ()=>void}
We have our own testnet instance and we hope our app can alert users that they are using an unexpected network in their stacks wallet
So we hope @stacks/connect can provide some API to make the app able to know which network users are using, just like
connect
event andchainChanged
event of MetaMaskMaybe we can do it like this:
Related issues:
The text was updated successfully, but these errors were encountered: