19

I know msg.sender exists, it gives the address of the sender. What other attributes are there and how can I list them / where are they defined?

eth
  • 85,679
  • 53
  • 285
  • 406
TMOTTM
  • 1,953
  • 2
  • 14
  • 23

1 Answers1

17

http://solidity.readthedocs.io/en/latest/units-and-global-variables.html#block-and-transaction-properties

msg.data (bytes): complete calldata
msg.gas (uint): remaining gas
msg.sender (address): sender of the message (current call)
msg.sig (bytes4): first four bytes of the calldata (i.e. function identifier)
msg.value (uint): number of wei sent with the message
eth
  • 85,679
  • 53
  • 285
  • 406