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
- Access to the endpoint or genesis file of the parachain you want to fork
20
20
- The block number or hash where the XCM was sent
21
-
- (Optional) A Chopsticks config file for repeated setups.
21
+
- (Optional) A Chopsticks config file for repeated setups
22
22
23
23
## Set Up Your Project
24
24
25
-
Let's start by creating a dedicated workspace for your XCM replay and dry-run experiments.
25
+
Start by creating a dedicated workspace for your XCM replay and dry-run experiments:
26
26
27
27
1. Create a new directory and navigate into it:
28
28
@@ -163,15 +163,15 @@ Full execution logs only work if the runtime was compiled with logging enabled.
163
163
164
164
To replay an XCM, you'll first need to identify the exact extrinsic that triggered it. In this example, we'll use block 9079592 on the Polkadot Asset Hub.
165
165
166
-
1. Find and open the block on Subscan to inspect its extrinsics and events. In this case, the block is [9079592](https://assethub-polkadot.subscan.io/block/9079592){target=\_blank}
166
+
1. Find and open the block on Subscan to inspect its extrinsics and events. In this case, the block is [9079592](https://assethub-polkadot.subscan.io/block/9079592){target=\_blank}.
167
167
168
168
2. Copy the block hash. Look for the block hash at the top of the page. For block 9079592, the hash is:
3. Explore and view the block in [Polkadot.js Apps](https://polkadot.js.org/apps){target=\_blank} using this direct link: [Block Hash Explorer](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-asset-hub-rpc.polkadot.io#/explorer/query/0xeb5a5737d47367dc1c02b978232283cdb096eb7e51d2eb22366a106a011347f6){target=\_blank}
174
+
3. Explore and view the block in [Polkadot.js Apps](https://polkadot.js.org/apps){target=\_blank} using this direct link: [Block Hash Explorer](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-asset-hub-rpc.polkadot.io#/explorer/query/0xeb5a5737d47367dc1c02b978232283cdb096eb7e51d2eb22366a106a011347f6){target=\_blank}.
175
175
176
176
4. Locate and decode the XCM extrinsic. Once you've found the extrinsic (e.g., 9079592-2), extract and decode its call data. For example, the call data is:
177
177
@@ -256,8 +256,8 @@ If it fails, you'll receive detailed error information:
256
256
257
257
For more information, see:
258
258
259
-
- [Dry Run Call](https://paritytech.github.io/polkadot-sdk/master/xcm_runtime_apis/dry_run/trait.DryRunApi.html#method.dry_run_call){target=\_blank} to simulate a full extrinsic
260
-
- [Dry Run XCM](https://paritytech.github.io/polkadot-sdk/master/xcm_runtime_apis/dry_run/trait.DryRunApi.html#method.dry_run_xcm){target=\_blank} to simulate a raw XCM
259
+
- [Dry Run Call](https://paritytech.github.io/polkadot-sdk/master/xcm_runtime_apis/dry_run/trait.DryRunApi.html#method.dry_run_call){target=\_blank} to simulate a full extrinsic.
260
+
- [Dry Run XCM](https://paritytech.github.io/polkadot-sdk/master/xcm_runtime_apis/dry_run/trait.DryRunApi.html#method.dry_run_xcm){target=\_blank} to simulate a raw XCM.
261
261
262
262
## Review and Debug
263
263
@@ -273,7 +273,7 @@ Replaying XCMs with full logging provides fine-grained control and visibility in
273
273
274
274
View the official Chopsticks GitHub repository.
275
275
276
-
[:octicons-arrow-right-24: Get Started](https://github.com/AcalaNetwork/chopsticks/)
276
+
[:octicons-arrow-right-24: Get Started](https://github.com/AcalaNetwork/chopsticks/){target=\_blank}
277
277
278
278
- <span class="badge guide">Guide</span>**Get Started with XCM**
0 commit comments