Ethereum Community Forum
Discussions
Activity
Best Of...
Sign In
·
Register
Home
›
Smart Contracts and Dapps
›
Solidity
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Activity
Unanswered
Best Of...
Categories
17.3K
All Categories
9.5K
Mining
574
Pool Discussion
378
Promotional
1.4K
General Project Discussion (non-technical)
485
Education
811
Protocol and Client discussion
170
web3-js
29
Whisper
16
Swarm
3
RLP
303
IoT & Hardware
1.2K
Smart Contracts and Dapps
28
Serpent
359
Solidity
664
Projects
1.2K
Reference clients code and builds
249
Eth & AlethZero- Cpp Implementation
471
Geth - Go Implementation
242
Mist
15
Node.js Implementation
36
Python Implementation
49
Mix
36
Other Implementations
170
Meetups
40
Other Events
226
Jobs & Skills
281
Press and Articles
75
Audio/Video
296
Ether Sale
1.2K
Other Languages
96
Chinese
255
German
33
Italian
111
French
3
Hebrew
42
Japanese
75
Portugese
46
Romanian
185
Russian
231
Spanish
47
Turkish
125
Watercooler
27
Meta
Vega Finally Unleashed! Fine-tuned performance and power consumption in a single chassis.
Solidity Docs, difference between msg sender and tx origin?
gkucmierz
Member
Posts:
13
✭
March 2016
in
Solidity
msg.sender (address): sender of the message (current call)
tx.origin (address): sender of the transaction (full call chain)
Can someone explain me the difference?
0
·
Share on Twitter
Share on Facebook
Comments
o0ragman0o
Member, Moderator
Posts:
1,291
mod
March 2016
@gkucmierz
Because contracts can call other contracts, they can be seen as the sender. All transactions need to be traceable to an initiating action i.e, tx.origin.
1
·
Share on Twitter
Share on Facebook
gkucmierz
Member
Posts:
13
✭
March 2016
Ok thank you. That is how I was thinking about it.
So if I understand correctly tx.origin is the one who is paying gas for all that fun, right?
0
·
Share on Twitter
Share on Facebook
Sign In
or
Register
to comment.
Comments
So if I understand correctly tx.origin is the one who is paying gas for all that fun, right?