I'm writing some logic to identify the currency used in an ethereum transaction, and am wondering the following:
web3.eth.getTransaction
returns a value
field that indicates the value transferred in Wei.
However I'm using receipts, and web3.eth.getTransactionReceipt
does not include the value transferred, which seems a little unintuitive. Why is this the case?
getTransactionAndReceipt
, but it is kinda of subjective to include it in web3js or not. – Ismael Jan 2 '20 at 19:12