I learned how to get the sender's address from this question. JSON-RPC returns a result with a from
field, which we can unmarshal in our struct.
But I'm curious why go-ethereum didn't return txExtraInfo
from TransactionByHash
. In my opinion, knowing who sends a transaction is useful information.
Add a comment
|