New answers tagged

0 votes

Uncaught TypeError: Cannot read properties of undefined (reading 'getInfo') at index2.js:20:20

The contract property you are refering to does not exists. But Contract does (capital c). So change this: mycontract = new web3.eth.contract(abi, contractAddress); to: mycontract = new web3.eth....
user avatar
0 votes

How to Automate End to End Testing For Etherium Dapps With Metamask?

You can test Metamask interactions with Synpress, e.g check if you can connect with the metamask wallet from your DApp with the following test case: describe('Test User Login', () => { it('...
user avatar
1 vote

How to call two function together in etherjs

i think you forget something after calling mint function const response = await ContractWithSigner.safeMint() response.wait(); // 👈 add this console.log("response: ", response); try ...
user avatar
  • 13
0 votes

How to generate Private key, public key and address

Best way to generate 12/24 words of seed phrase or Ethereum private and public address key Use this tool - Seed phrases Generator
user avatar
  • 1
0 votes
Accepted

Next JS versus React. Which to use when for your Dapp?

Not every browser has metamask extension. By using next.js, when our code is taken and rendered on the server, on the next server we can reach out to the Ethereum network and do some initial calls ...
user avatar
  • 506
0 votes

How to connect a MetaMask account to a DApp in the MetaMask Application?

I've recently dealt with this, I also needed to make sure MM connects to the app on mobile, from the browser. What you can do is: detect if the user is accessing your dApp from a mobile device in ...
user avatar
0 votes

Connect MetaMask mobile app to React Native Dapp with DeepLinks

https://www.npmjs.com/package/@walletconnect/react-native-dapp Use this npm module to connect dapp services.
user avatar
0 votes

Is there a "Desktop Dapp"?

You can use electron.js. I haven't tried it yet. Here's a link to it
user avatar
0 votes

Error import web3

Try using const web3 = require("web3.js"); If you want to use the import statement you need to add a line in your package.json called "type": "module", learn more here.
user avatar
0 votes

How to solve ''address.setMessage is not a function''?

The variable address is defined as a string, so it is not possible to use it to call a contract method. It is likely the intention was to use RemixContract RemixContract.methods.setMessage($("#...
user avatar
  • 29.1k

Top 50 recent answers are included