You need to use ____________ to get the address that initiated the transaction.
Suggested Answer: A
Get Premium CBDE Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
17 comments · newest first
MA
Marquetta
1 month ago
But what if the transaction is from a contract? Tx.origin might help.
ST
Stefan
1 month ago
I agree with Bob. Msg.sender is the way to go!
KA
Kanisha
2 months ago
Msg.sender gives the right address for the transaction.
JA
Jacklyn
2 months ago
I feel like Tx.origin is too broad.
DI
Dick
2 months ago
Msg.sender is safer for contract interactions.
TR
Tricia
2 months ago
Tx.origin can be misleading sometimes.
GE
Gertude
2 months ago
I prefer B) Msg.sender. It's more reliable for the current context.
PA
Paulene
2 months ago
I think it's A) Tx.origin. It shows the original sender.
JE
Jerlene
3 months ago
B) Msg.sender is the way to go, no doubt!
MA
Marquetta
3 months ago
Wait, are you guys sure about that? Sounds off.
RO
Ronnie
3 months ago
Nah, it’s A) Tx.origin for sure.
TA
Tamar
3 months ago
I thought it was A) Tx.origin, but I see the point.
CA
Cathern
3 months ago
Definitely B) Msg.sender!
MI
Mila
3 months ago
I remember reading that Msg.sender is generally preferred to avoid security issues, but I can't recall the exact reason.
ID
Idella
4 months ago
I’m not entirely sure, but I feel like Tx.origin is used for getting the original sender's address.
AL
Alline
4 months ago
I practiced a question like this, and I chose Msg.sender because it refers to the immediate sender of the message.
LI
Lizette
4 months ago
I think it's Tx.origin, but I remember something about Msg.sender being more secure in certain contexts.