How can I get only to and from addresses from a transaction Hash using Web3. I am unable to get details of to and from using web3.eth.getTransaction() method. Please help!!
You can use the hash to get the transaction receipt. The transaction receipt will include the to and from addresses among other things. There are similar methods for inspecting the pending transaction before it is mined.
Hope it helps.