How to get L2 block's epoch? #491
Unanswered
rho-cassiopeiae
asked this question in
Application Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project I have a task system with scheduling done in terms of L1 blocks, e.g. execute task A once L1 block N has been mined. But before executing the task I want to make sure that all L2 events which happened on Optimism in blocks with epochs <= N has been processed. I save the latest processed L2 block in db. Basically, I need to check if
GetEpochFor(LatestProcessedL2Block) > N
. And if not, just wait til it is. But I can't find an API for requesting an epoch.Beta Was this translation helpful? Give feedback.
All reactions