All articles
blockchain

What is the difference between msg.sender and tx.origin

Share this article

Share on LinkedIn Share on X (formerly Twitter)

Thetx.origin global variable refers to the original external account that started the transaction while msg.sender refers to the immediate account (it could be external or another contract account) that invokes the function.

To see the full list of block and transaction properties, click here


Comments