[Application Development] How can we know if a withdrawal is claimable or claimed #699
-
Did you check the documentation?
Documentation Feedback (Optional)No response What type of issue are you experiencing?
Issue DescriptionI used the library implementation of viem to submit proof for a withdrawal and a claim it. How can we know that a withdrawal is claimed also the library is telling us to wait for the challenge period, is there a better way to know when a withdrawal is claimable like an event? Also how can we verify if it is claimed or not. Steps to ReproduceInitiate withdraw using superbridge/optimism Are you using a specific library or SDK?
Are you using the latest version of the library/SDK?
Environment DetailsNo response Troubleshooting AttemptsNo response What type of support do you need?
Additional InformationNo response FeedbackNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
https://viem.sh/op-stack/actions/getTimeToFinalize#gettimetofinalize tells you how long you need to wait before you can claim
in what sense you want to verify?i assume you sent a proveWithdrawal and want to verify it succeed or not,I will suggest use waitForTransactionReceipt to check is it proceed or not |
Beta Was this translation helpful? Give feedback.
-
If your question has been solved, please select an answer and mark it as answered |
Beta Was this translation helpful? Give feedback.
https://viem.sh/op-stack/actions/getTimeToFinalize#gettimetofinalize tells you how long you need to wait before you can claim
in what sense you want to verify?i assume you sent a proveWithdrawal and want to verify it succeed or not,I will suggest use waitForTransactionReceipt to check is it proceed or not
ref:https://viem.sh/op-stack/guides/withdrawals#3-prove-withdrawal