what is use of msg.sender in solidity code?

+1 vote
I was reading ethereum document and there I encountered a doubt: what does "[msg.sender]" stands for? How and when to use this statement.??
Apr 24, 2018 in Blockchain by Johnathon
• 9,050 points
223 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote
Best answer

msg.sender(address) function indicated the sender of the current message or (current call). the function indicates the person currently connecting with the contract. In case of contract calling another contract, msg.sender is used.

answered Apr 24, 2018 by Shashank
• 10,330 points

selected Aug 10, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

What is the use of Ethereum's RLPx in Ethereum ecosystem?

So, RLPx is a protocol suite. It ...READ MORE

answered Jun 5, 2018 in Blockchain by Johnathon
• 9,050 points
121 views
0 votes
1 answer

In Ethereum Solidity, what is the purpose of the “memory” keyword?

Without the memory keyword, Solidity tries to declare variables ...READ MORE

answered Nov 14, 2018 in Blockchain by Perry
• 16,450 points
23 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
64 views
0 votes
1 answer
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 65,850 points
29 views
+1 vote
1 answer

What is the difference between if() and require() statement in solidity??

If() and require() have separate functions and ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,330 points
225 views
0 votes
1 answer

What could be the best term to use for the collection of contracts in a .sol file?

module - don't think so. Because module ...READ MORE

answered Jun 1, 2018 in Blockchain by Shashank
• 10,330 points
19 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.