In Solidity, origin and sender can be easily differentiated through tx.origin and msg.sender, respectively.
Is it also possible to obtain both sender and origin of a specific transaction from the data in blockchain itself? The from field obtained with getTransaction and getTransactionReceipt seems to always be tx.origin.
Specifically, I would like to do so with the JS API. I suspect that somehow processing the information in the transaction logs in the transaction's receipt is probably one way to go, but haven't figured out how yet (although I would expect some simpler way, too).