I understand this as the pattern to send a transaction with web3:

   from: myaddress,
   to: toaddress,
   data: web3.eth.abi.encodeFunctionSignature('whitdrawETH()')
   value: web3.toWei(1, "ether")

HOWEVER, how do I get the prompt to not be set to a value? As in the metamask prompt pops up and the user can insert X value?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.