You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/en/developers/l1-and-l2-bridging/the-scroll-messenger.mdx
+3-67Lines changed: 3 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,77 +23,13 @@ the messenger smart contract deployed on L1, `L1ScrollMessenger`. To send a mess
23
23
24
24
## Finalizing transactions on L1
25
25
26
-
Any upcoming transactions from L2 need to be finalized using the `relayMessageWithProof` function on the Scroll Messenger
27
-
contract. We call this process "submitting an Execute Withdrawal transaction," and it is required for both sending arbitrary messages and transferring assets through a gateway or the router. When you use `relayMessageWithProof`, you'll have to provide a Merkle inclusion proof showing your transaction is included in the trie of "withdrawal" messages, along with other parameters. Producing this proof and these values can be done locally and permissionlessly, but at the moment, the easiest way to retrieve these parameters is through our backend APIs:
26
+
Any upcoming transactions from L2 need to be finalized using the `relayMessageWithProof` function on the Scroll Messenger contract. We call this process "submitting an Execute Withdrawal transaction," and it is required for both sending arbitrary messages and transferring assets through a gateway or the router. When you use `relayMessageWithProof`, you'll have to provide a Merkle inclusion proof showing your transaction is included in the trie of "withdrawal" messages, along with other parameters.
The `claimInfo` object under the `result` json returned has all the information needed to execute your transaction on L1. The
90
-
parameters needed by the `relayMessageWithProof` are: `from`, `to`, `value`, `nonce`, `message` and `proof`. Supply these to
91
-
the `relayMessageWithProof` function on L1 to execute and finalize your transaction on L1.
28
+
To produce this proof and these values, a batch indexing service has to be run locally: [Scroll Bridge SDK](https://github.com/scroll-tech/scroll-bridge-sdk). Further details on how to use this service are in the [docs](https://github.com/scroll-tech/scroll-bridge-sdk/blob/main/docs/document.md).
92
29
93
30
<Asidetype="tip"title="">
94
31
All L2 transactions are bundled into batches – you have to wait for the batch that includes your transaction to
95
-
finalize before calling `relayMessageWithProof`. Your transaction batch index is returned in the `batch_index` value
96
-
on the `/claimable` endpoint, and you can follow the progress on the [Scroll Rollup
32
+
finalize before calling `relayMessageWithProof`. You can follow the progress of your batch on the [Scroll Rollup
0 commit comments