I want to use web3modal + web3js in conjunction, but I get an error #3186
-
chain = await web3.eth.getChainId(); An error occurs when using that code. It is recognized that it is not linked to web3js. I'm asking because I think someone knows this solution. console error Example used for source code as a reference. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi, the sign API alone doesn't work with libraries like web3.js, you can do this with the ethereum-provider package, though there's no CDN for it atm. |
Beta Was this translation helpful? Give feedback.
this line should be without brackets
const pkg = await import("https://esm.run/@walletconnect/[email protected]/dist/index.umd.js");