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
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -27903,15 +27903,16 @@ If you are new to XCM dry-run or replay, see the [Replay and Dry Run XCMs Using
27903
27903
27904
27904
### What is `SetTopic`?
27905
27905
27906
-
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:
27906
+
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features enable developers to trace and correlate messages across chains:
27907
27907
27908
+
- The addition of a new **[`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} event**, emitted on the origin chain when an XCM message is sent.
27909
+
- The guarantee that the **`message_id` in the `PolkadotXcm.Sent` event matches the `id` in the [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} event** on the destination chain, enabling reliable cross-chain correlation.
27908
27910
- [`SetTopic([u8; 32])`](https://github.com/polkadot-fellows/xcm-format#settopic){target=\_blank} is an XCM instruction that **sets a 32-byte topic register** inside the message.
27909
-
- This topic acts as a **logical identifier** (`message_id`) for the XCM, enabling you to group and trace related messages across chains.
27910
-
- It appears as a hash in both [`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} and [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} events.
27911
+
- This topic acts as a **logical identifier** (`message_id`) for the XCM, allowing you to group and trace related messages across chains.
27911
27912
27912
-
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. Uniqueness must be enforced by the message creator if required.
27913
+
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. If uniqueness is required (e.g. for deduplication), it must be enforced by the message creator.
27913
27914
27914
-
These features are available in runtimes built from **`stable2503-5` or later**.
27915
+
These features are available on runtimes built from **`stable2503-5` or later**.
27915
27916
27916
27917
### Understanding `message_id`
27917
27918
@@ -28892,7 +28893,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
28892
28893
</pre>
28893
28894
</div>
28894
28895
28895
-
Common errors include missing assets, execution limit exceeded, or bad asset location. This output is available on runtimes from **`stable2506` or later**, and is often sufficient for identifying common issues such as missing assets or execution limits.
28896
+
Common errors include missing assets, exceeded execution limits, or invalid asset locations. This nested error reporting, introduced in runtimes from **`stable2506` onward**, usually suffices to diagnose typical issues.
28896
28897
28897
28898
2. **Replay Using Chopsticks for Full Logs**
28898
28899
@@ -28911,7 +28912,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
28911
28912
3. Inspect logs for the failing XCM instruction and reason
28912
28913
4. Adjust weight limits, asset locations, or message construction as needed
28913
28914
28914
-
See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/) for replay instructions.
28915
+
→ See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/){target=\_blank} for replay instructions.
Copy file name to clipboardExpand all lines: tutorials/interoperability/xcm-observability.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,15 +83,16 @@ If you are new to XCM dry-run or replay, see the [Replay and Dry Run XCMs Using
83
83
84
84
### What is `SetTopic`?
85
85
86
-
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:
86
+
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features enable developers to trace and correlate messages across chains:
87
87
88
+
- The addition of a new **[`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} event**, emitted on the origin chain when an XCM message is sent.
89
+
- The guarantee that the **`message_id`in the `PolkadotXcm.Sent` event matches the `id`in the [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} event** on the destination chain, enabling reliable cross-chain correlation.
88
90
- [`SetTopic([u8; 32])`](https://github.com/polkadot-fellows/xcm-format#settopic){target=\_blank} is an XCM instruction that **sets a 32-byte topic register** inside the message.
89
-
- This topic acts as a **logical identifier** (`message_id`) for the XCM, enabling you to group and trace related messages across chains.
90
-
- It appears as a hashin both [`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} and [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} events.
91
+
- This topic acts as a **logical identifier** (`message_id`) for the XCM, allowing you to group and trace related messages across chains.
91
92
92
-
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. Uniqueness must be enforced by the message creatorif required.
93
+
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. If uniqueness is required (e.g. for deduplication), it must be enforced by the message creator.
93
94
94
-
These features are available in runtimes built from **`stable2503-5` or later**.
95
+
These features are available on runtimes built from **`stable2503-5` or later**.
95
96
96
97
### Understanding `message_id`
97
98
@@ -274,7 +275,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
Common errors include missing assets, execution limit exceeded, or bad asset location. This output is available on runtimes from **`stable2506`or later**, and is often sufficient for identifying common issues such as missing assets or execution limits.
278
+
Common errors include missing assets, exceeded execution limits, or invalid asset locations. This nested error reporting, introduced inruntimes from **`stable2506`onward**, usually suffices to diagnose typical issues.
278
279
279
280
2. **Replay Using Chopsticks for Full Logs**
280
281
@@ -293,7 +294,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
293
294
3. Inspect logs for the failing XCM instruction and reason
294
295
4. Adjust weight limits, asset locations, or message construction as needed
295
296
296
-
See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/) for replay instructions.
297
+
→ See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/){target=\_blank}for replay instructions.
0 commit comments