Is it possible to get the senders address using golang when all you have is the raw transaction string. I can decode it and get the nonce, hash, to etc as these are all exported functions from the types.Transactions package but I cant seem to find a way to get the actual senders address (using golang) Javascript has some functions for doing so – I should also state that I need to do this in a standalone script rather than being connected to a node (if possible)
[Ethereum] Given a RAW Transaction – how to get senders address
go-ethereumgolangraw-transaction
Best Answer
Here's a full working example of how to decode a raw transaction and read the sender (from) address:
See this transaction in etherscan