[Application Development] Trace the transactions from L2 to L1 || How to get confirmations on L1 #627
Replies: 1 comment 15 replies
-
Hello! One key point to note is that L2 blocks are derived from L1 data, so the concept of directly linking an L2 transaction to L1 data can be misleading. Instead, to confirm that the transaction execution on L2 aligns with the commitments submitted to L1, you can check the output proposal submitted by the op-proposer. Since the OP Stack functions as an Optimistic Rollup, this output proposal is considered valid unless challenged, confirming that L2 blocks have progressed correctly based on L1. |
Beta Was this translation helpful? Give feedback.
-
Did you check the documentation?
Documentation Feedback (Optional)
No response
What type of issue are you experiencing?
Issue Description
I'm trying to see how I can get from an L2 transaction batch to a L1 tx confirming the inclusion of the block containing the L2 transaction into a batch which was submitted to L1. If I understand correctly, batches are constructed from a range of L2 blocks and the stateRoot of each block goes into the batch. That batch is then stored on the L1 as a blob where the transaction was made by the Batch Sender address. I can see the blobs sent by the batch sender, but I can find the link from a particular block on L2 to a particular batch, and/or the specific batch to the blob commitment relating to that batch? I need to be able to provably tie a specific L2 transaction to a specific piece of L1 data showing it happened. I am aware of the getBlockByNumber RPC call, but that is not sufficient, it only tells me that my L2 transaction is finalized on L1, and doesn't provide any information I can look at on L1 to prove that.
Steps to Reproduce
Not a bug, general question
Are you using a specific library or SDK?
Are you using the latest version of the library/SDK?
Environment Details
No response
Troubleshooting Attempts
No response
What type of support do you need?
Additional Information
No response
Feedback
No response
Beta Was this translation helpful? Give feedback.
All reactions