'Display Transaction Hash in Frontend
How can we display transaction Hash in the front end using blockchain? I tried
getTransactionsByAccount("*")- Find transactions to/from
eth.accounts[0]address - https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html
Solution 1:[1]
On Console in the browser, you can use this method getTransactionReceipt(tx.result)
const transaction = web3.eth.getTransactionReceipt(tx.result); console.log(transaction);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | yamna iftikhar |

