Is it possible to detect metamask? #513
Answered
by
cattingcat
cattingcat
asked this question in
Q&A
-
Metamask is very special provider. I disallows to sign transactions, only sign+send. Is it possible to detect it somehow (for example is needed for using flashbots) |
Beta Was this translation helpful? Give feedback.
Answered by
cattingcat
Jul 17, 2022
Replies: 1 comment
-
I found the way to do it and then
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cattingcat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the way to do it
const { connector: activeConnector, isConnected, address } = useAccount();
and then
const isMetaMask = activeConnector.name === 'MetaMask';