LOGBOOK

HELP

Quiz Entry - updated: 2026.07.30

What are msg.sender and msg.value in Solidity?

msg.sender is the address that called the current function; msg.value is how much native currency (in wei) was sent along with the call.

Both are globally available inside any function. msg.sender records who invoked (e.g. who funded); msg.value is only non-zero if the function is payable and the caller attached currency.

From Quiz: IOTHACK / IOTHACK Glossary | Updated: Jul 30, 2026