0

How can we display transaction Hash in the front end using blockchain? I tried

  1. getTransactionsByAccount("*")
  2. Find transactions to/from eth.accounts[0] address
  3. https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html
yamna iftikhar
  • 103
  • 1
  • 5

1 Answers1

0

On Console in the browser, you can use this method getTransactionReceipt(tx.result)

const transaction =  web3.eth.getTransactionReceipt(tx.result);           console.log(transaction);

output

yamna iftikhar
  • 103
  • 1
  • 5