My plain vanilla sendTransaction doesn't ever resolve on ganache with web3js 1.0.0 beta52:

async function sendTx() {
  const receipt = await web3.eth
      to: "0x1...",
      from: "0x2...",
      value: web3.utils.toWei("0.1", "ether")

   return receipt;

Here is a barebone test script which should work on a "blank" ganache.

The script resolves on web3js beta48 although confirmations are not received (which might be a related issue?).

I also raised an issue in web3.js repo but it has been closed.

Does it work for you? What's wrong with my script?

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.