Skip to main content
edited tags
Link
Matthew Schmidt
  • 7.3k
  • 1
  • 24
  • 35
added 319 characters in body
Source Link

I hope this question is not bad one, but this has been something I have been having trouble understanding. How does time in the blockchain work, and how can I utilize variables like block.timestamp and the like? I am creating a faucet where the user can withdraw a set amount of ether, then they have to wait one hour before they can withdraw more.

Edit for duplication: I want to be ablehave looked at other explanations here on StackExchange, but it did not answer my question. I would like to set a timerknow how time is passed on the blockchain, then a certain function will become available for that addressand with this knowledge utilize block. Thank you in advancetimestamp. I apologize if I was unclear. I am a beginner with creating Dapps, and want to learn! :)

I hope this question is not bad one, but this has been something I have been having trouble understanding. How does time in the blockchain work, and how can I utilize variables like block.timestamp and the like? I want to be able to set a timer, then a certain function will become available for that address. Thank you in advance!

I hope this question is not bad one, but this has been something I have been having trouble understanding. How does time in the blockchain work, and how can I utilize variables like block.timestamp and the like? I am creating a faucet where the user can withdraw a set amount of ether, then they have to wait one hour before they can withdraw more.

Edit for duplication: I have looked at other explanations here on StackExchange, but it did not answer my question. I would like to know how time is passed on the blockchain, and with this knowledge utilize block.timestamp. I apologize if I was unclear. I am a beginner with creating Dapps, and want to learn! :)

Source Link

How does time in the blockchain work?

I hope this question is not bad one, but this has been something I have been having trouble understanding. How does time in the blockchain work, and how can I utilize variables like block.timestamp and the like? I want to be able to set a timer, then a certain function will become available for that address. Thank you in advance!