1

Why we can complete the transaction without signing it?

//sending transaction.
// Q: Why we don't need to sign transactions here?
const trxHash = await web3.eth.sendTransaction({
  from: accounts[0],
  to: accounts[1],
  value: web3.utils.toWei("1", "ether"),
});

console.log(trxHash.transactionHash);

0

Your Answer

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

Browse other questions tagged or ask your own question.