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: llms.txt
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27845,6 +27845,7 @@ Before you begin, ensure you've:
27845
27845
27846
27846
- [Chopsticks](/develop/toolkit/parachains/fork-chains/chopsticks/get-started/){target=\_blank} installed (`npm i -g @acala-network/chopsticks`)
27847
27847
- Access to the endpoint or genesis file of the parachain you wish to fork
27848
+
- Set up your TypeScript project with the essential tools
27848
27849
27849
27850
If you haven't replayed or dry-run XCMs before, see the [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/){target=\_blank} tutorial for step-by-step guidance.
→ See the [Fork a Chain with Chopsticks guide](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} for detailed instructions.
27866
+
27864
27867
Before running the script, add the descriptors:
27865
27868
27866
27869
```bash
27867
27870
npx papi add assetHub -w ws://localhost:8000
27868
27871
npx papi add hydration -w ws://localhost:8001
27869
27872
```
27870
27873
27871
-
→ See the [Fork a Chain with Chopsticks guide](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} for detailed instructions.
27872
-
27873
27874
## Understanding the Basics
27874
27875
27875
27876
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features allow developers to trace and correlate messages across chains:
@@ -27912,6 +27913,8 @@ This example uses the `PolkadotXcm.limited_reserve_transfer_assets` extrinsic to
27912
27913
27913
27914
The runtime automatically appends a `SetTopic` instruction to the forwarded XCM. This topic becomes the `message_id` used in both `Sent` and `Processed` events, enabling traceability without manual intervention.
27914
27915
27916
+
Create a new script, `limited-reserve-transfer-assets.ts`
27917
+
27915
27918
```ts
27916
27919
import {Binary, createClient, Enum, Transaction} from "polkadot-api";
27917
27920
import {withPolkadotSdkCompat} from "polkadot-api/polkadot-sdk-compat";
@@ -28165,6 +28168,8 @@ In complex XCM flows, such as multi-hop transfers that span multiple parachains,
28165
28168
- **Topic assignment**: Manually set via `SetTopic` instruction
28166
28169
- **Goal**: Transfer DOT and trace the XCM using the manually assigned `message_id`
28167
28170
28171
+
Create a new script, `multi-hop-with-set-topic.ts`
28172
+
28168
28173
```ts
28169
28174
import {Binary, createClient, Enum, Transaction} from "polkadot-api";
28170
28175
import {withPolkadotSdkCompat} from "polkadot-api/polkadot-sdk-compat";
Copy file name to clipboardExpand all lines: tutorials/interoperability/xcm-observability.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Before you begin, ensure you've:
25
25
26
26
-[Chopsticks](/develop/toolkit/parachains/fork-chains/chopsticks/get-started/){target=\_blank} installed (`npm i -g @acala-network/chopsticks`)
27
27
- Access to the endpoint or genesis file of the parachain you wish to fork
28
+
- Set up your TypeScript project with the essential tools
28
29
29
30
If you haven't replayed or dry-run XCMs before, see the [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/){target=\_blank} tutorial for step-by-step guidance.
→ See the [Fork a Chain with Chopsticks guide](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} for detailed instructions.
46
+
44
47
Before running the script, add the descriptors:
45
48
46
49
```bash
47
50
npx papi add assetHub -w ws://localhost:8000
48
51
npx papi add hydration -w ws://localhost:8001
49
52
```
50
53
51
-
→ See the [Fork a Chain with Chopsticks guide](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} for detailed instructions.
52
-
53
54
## Understanding the Basics
54
55
55
56
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features allow developers to trace and correlate messages across chains:
@@ -92,6 +93,8 @@ This example uses the `PolkadotXcm.limited_reserve_transfer_assets` extrinsic to
92
93
93
94
The runtime automatically appends a `SetTopic` instruction to the forwarded XCM. This topic becomes the `message_id` used in both `Sent` and `Processed` events, enabling traceability without manual intervention.
94
95
96
+
Create a new script, `limited-reserve-transfer-assets.ts`
0 commit comments