@@ -118,21 +118,14 @@ You can use viem to trace a deposit.
118
118
119
119
Retrieve the transaction receipt for the deposit using the viem client.
120
120
121
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L32-L33 hash=c02e1e5544325e0d0f2cda9f7a16eff4
122
- ```
123
-
124
- { <h3 >Parse deposit logs</h3 >}
125
-
126
- Parse the logs from the deposit receipt for more detailed information.
127
-
128
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L35-L38 hash=be1c79d9e6e8835d2e57683374576254
121
+ ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L32-L34 hash=077581a56fc7b26f62589f0a6ae99e0d
129
122
```
130
123
131
124
{ <h3 >Get the deposit transaction</h3 >}
132
125
133
126
You can directly query for the L2 transaction that executed the deposit.
134
127
135
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L41-L42 hash=a8a37697d0f9104f5063f9bd83b48b04
128
+ ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L36-L38 hash=c67f0abeef0f2f817b7fb04be8f157a6
136
129
```
137
130
</Steps >
138
131
@@ -145,28 +138,21 @@ You can use viem's functions to trace a withdrawal.
145
138
146
139
Like deposits, withdrawals can have multiple statuses depending on where they are in the process.
147
140
148
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L45-L46 hash=6e1e7effc1a3de528e3812b07e7eba73
141
+ ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L40-L42 hash=55ceda3d9d2f9abf037f8b259de14f26
149
142
```
150
143
151
144
{ <h3 >Get the withdrawal transaction receipt</h3 >}
152
145
153
146
Retrieve the L1 transaction receipt for the withdrawal.
154
147
155
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L49-L50 hash=cbf6d336f5426e0f3068364a8d0c4823
156
- ```
157
-
158
- { <h3 >Parse withdrawal logs</h3 >}
159
-
160
- Parse the logs from the withdrawal receipt to get more details.
161
-
162
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L52-L55 hash=306348abf2d949d7598b77b21d27178e
148
+ ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L44-L46 hash=d784970abbfd37215d33274d60173ab2
163
149
```
164
150
165
151
{ <h3 >Get the withdrawal transaction</h3 >}
166
152
167
153
Directly query for the L1 transaction that executed the withdrawal.
168
154
169
- ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L58-L59 hash=366c52f3a502fa70c9d814a416fb9e12
155
+ ``` js file=<rootDir>/public/tutorials/sdk-trace-txns.js#L48-L50 hash=48358bc45243db4e69de6ed3d49a67f9
170
156
```
171
157
</Steps >
172
158
0 commit comments