Skip to main content
edited title
Link
Pabi
  • 1.1k
  • 4
  • 11
  • 18

Solidity: Is there a way to get the timestamp of a transaction whatthat executed?

Source Link
Pabi
  • 1.1k
  • 4
  • 11
  • 18

Solidity: Is there a way to get the timestamp of a transaction what executed?

Is there a way for a contract to be able to get the exact time someone called a function in it?

For example, if someone sends funds to the contract address, is there a timestamp recorded by the blockchain that would give the received time of this transaction?

And if so, how would I get this value in Solidity and would the timestamp of this transaction be modifiable by the user in any kind of way once it is sent?