use-metamask
use-metamask copied to clipboard
a custom React Hook to manage Metamask in Ethereum ĐApp projects
EDIT: Seems to be an issue with React 18. Possible workaround would be to remove the Reac.StricMode component wrapping the app (not recommended). Hi. I'm getting the following error when...
I'm getting this error the first time using this package. I'm using the ethers Web3Interface ``` TypeError: # is not a constructor at _construct (useMetamask.js:18:1) at _callee$ (useMetamask.js:137:1) at tryCatch...
I'm building a website with the latest version of [email protected] and [email protected]. I'm seeing the following error: this is the line 93: after a little bit of googling I saw...
Hi there! I'm developing a project using [Alchemy Web3](https://github.com/alchemyplatform/alchemy-web3), a wrapper around [Web3.js](https://web3js.readthedocs.io/). See the Alchemy Web3 docs for more context: https://docs.alchemy.com/alchemy/documentation/alchemy-web3 I encountered a roadblock when combining it with...
Works fine with client render but server-side rendering errors because `window` is not defined 
https://github.com/mdtanrikulu/use-metamask/blob/af4f21862c5541043fea16fb4ba5a04318403b62/src/useMetamask.js#L89-L92 Param `method` is expected to be `eth_chainId`, according to [MetaMask document](https://docs.metamask.io/guide/ethereum-provider.html#legacy-properties): > If you need to retrieve the current chain ID, use ethereum.request({ method: 'eth_chainId' }). See also the...
To be able to awaiting transactions in UI, give an abstracted event handler or tx lifetime state. So user can be informed based on it.