Skip to main content
edited title
Link
realtebo
  • 343
  • 5
  • 15

web3js: Can I send a signed TransactionwTransaction without wait the result?

Source Link
realtebo
  • 343
  • 5
  • 15

web3js: Can I send a signed Transactionw without wait the result?

Commonly, I dow

const receipt = await web3.eth.sendSignedTransaction(web3, signed_transaction);
console.log("tx_hash:", receipt.transactionHash);
console.log("gas_used:", receipt.gasUsed);
console.log("gas_price:", offered_gas_price);

But I do not want (no more) to get the return output, because it's too slow.

So I started a nodejs server to listen to contract events, and it works.

No, how can I call web3.eth.ssendSignedTransaction without wait for result?

I simply tried to call

web3.eth.sendSignedTransaction(web3, signed_transaction);

But I discovered that nothing is happening at all against my contract.

Should be a js problem only. But, in case no, can I simply send a transaction and ignore esit?

how?