Info blockchain from Pyteal - General - Algorand
Info blockchain from Pyteal
post by hamidhajaje on Apr 1, 2022
Hello,
I want to know the last number block and the hash of this block from byteal and the time current.
I search in Transaction Fields and Global Parameters but I not found it.
post by fabrice on Apr 1, 2022
- timestamp of last block:
Global.latest_timestamp() - current round/block number:
Global.round()(last block can be obtained by subtracting 1) - previous block hash: not available. Which use case do you have in mind?
See Transaction Fields and Global Parameters — PyTeal documentation