Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get "Prove Transaction hash" for a L2 withdrawal? #9974

Closed
gndelia opened this issue Mar 26, 2024 · 1 comment
Closed

How to get "Prove Transaction hash" for a L2 withdrawal? #9974

gndelia opened this issue Mar 26, 2024 · 1 comment

Comments

@gndelia
Copy link

gndelia commented Mar 26, 2024

Not an actual bug (I think, unless the feature is missing), but a question. According to this, given a L2 transaction hash for a withdrawal, we can use

const l1Rcpt = await crossChainMessenger.getMessageReceipt(l2TxHash)
const l1TxHash = l1Rcpt.transactionReceipt.transactionHash

and l1TxHash will be the finalized tx hash on L1. How can we get the Tx hash of the "Prove Withdraw" operation in L1 ?
If the withdrawal is not finalized, would that l1Rcpt.transactionReceipt.transactionHash be empty, or would it be the Prove hash? If so, how can I get both transaction hashes once the withdrawal is finalized?

@tynes
Copy link
Contributor

tynes commented Jun 17, 2024

Better to ask this question here: https://github.com/ethereum-optimism/developers/discussions

@tynes tynes closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants