How can I make my contract in a way that others can interact with it using metamask. This is my code: dapp let input = document.getElementById("myInput").value contract.methods.create(input) .send({from: "my address"}) I want a way whereby whoever is interacting with the contract will have his/her metamask account address replace mine at the "my address" section.

  • You can probably just remove the { from: ... } part and let the wallet fill that in. Not really sure though, since I don't use web3js much Nov 28, 2021 at 11:29

1 Answer 1


To create a dapp besides the usual technologies for web development you will need to communicate with the blockchain, for that you can use web3.js or ethers.js libraries.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.