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
description: How the AssetClaimer hint improves trapped asset recovery in XCMv5.
3
+
description: Learn how the AssetClaimer hint improves trapped asset recovery in XCM V5, enabling automated recovery and reducing the need for governance intervention.
4
4
---
5
5
6
-
# Asset claimer
6
+
# Asset Claimer (XCM V4 → XCM V5)
7
7
8
-
XCMv5 introduces the `AssetClaimer` execution hint through `SetHints`, which significantly simplifies the process of recovering trapped assets when XCM execution fails.
8
+
XCMv5 introduces the [`AssetClaimer`](https://paritytech.github.io/polkadot-sdk/master/staging_xcm/v5/enum.Hint.html#variant.AssetClaimer){target=\_blank} execution hint through [`SetHints`](https://paritytech.github.io/polkadot-sdk/master/staging_xcm/v5/enum.Instruction.html#variant.SetHints){target=\_blank}, which significantly simplifies the process of recovering trapped assets when XCM execution fails.
9
9
10
10
## The problem before v5
11
11
12
12
When XCM execution failed and assets became trapped:
13
13
14
-
-**Governance dependency**: Most trapped asset recovery required governance proposals
15
-
-**Complex procedures**: Manual intervention through referendum processes
16
-
-**Long delays**: Recovery could take weeks or months through governance
17
-
-**Risk of loss**: Assets could remain permanently trapped if governance didn't act
18
-
-**High barriers**: Small amounts often weren't worth the governance overhead
14
+
-**Governance dependency**: Most trapped asset recovery required governance proposals.
15
+
-**Complex procedures**: Manual intervention through referendum processes.
16
+
-**Long delays**: Recovery could take weeks or months through governance.
17
+
-**Risk of loss**: Assets could remain permanently trapped if governance didn't act.
18
+
-**High barriers**: Small amounts often weren't worth the governance overhead.
19
19
20
-
## The v5 solution: AssetClaimer hint
20
+
## The V5 Solution: `AssetClaimer` Hint
21
21
22
-
The new `AssetClaimer` hint allows XCM programs to preemptively designate who can claim trapped assets:
22
+
The new [`AssetClaimer`](https://paritytech.github.io/polkadot-sdk/master/staging_xcm/v5/enum.Hint.html#variant.AssetClaimer){target=\_blank} hint allows XCM programs to preemptively designate who can claim trapped assets:
23
23
24
24
```typescript
25
25
// Set asset claimer before risky operations
@@ -28,9 +28,10 @@ XcmV5Instruction.SetHints({
28
28
})
29
29
```
30
30
31
-
## How it improves the situation
31
+
## How it Improves the Situation
32
+
33
+
### Before XCM V5
32
34
33
-
### Before XCMv5
34
35
```typescript
35
36
// If this XCM fails, assets become trapped
36
37
const riskyXcm = [
@@ -43,7 +44,8 @@ const riskyXcm = [
43
44
// Recovery required governance intervention
44
45
```
45
46
46
-
### With XCMv5
47
+
### With XCM V5
48
+
47
49
```typescript
48
50
// Proactive asset claimer setup
49
51
const saferXcm = [
@@ -60,34 +62,40 @@ const saferXcm = [
60
62
// Recovery can be done immediately by the claimer
61
63
```
62
64
63
-
## Key improvements
65
+
## Key Improvements
66
+
67
+
### Immediate Recovery
68
+
69
+
-**Before**: Wait for governance process (weeks/months).
70
+
-**After**: Designated claimer can act immediately.
71
+
72
+
### Reduced Governance Burden
64
73
65
-
### 1. Immediate recovery
66
-
-**Before**: Wait for governance process (weeks/months)
67
-
-**After**: Designated claimer can act immediately
74
+
-**Before**: Every trapped asset required a governance proposal.
75
+
-**After**: Only complex cases need governance intervention.
68
76
69
-
### 2. Reduced governance burden
70
-
-**Before**: Every trapped asset required a governance proposal
71
-
-**After**: Only complex cases need governance intervention
77
+
### Predictable Recovery
72
78
73
-
### 3. Predictable recovery
74
79
-**Before**: Uncertain if governance would approve recovery
Particularly useful for setting local accounts on destination chains:
92
100
93
101
```typescript
@@ -103,16 +111,17 @@ const remoteXcm = [
103
111
]
104
112
```
105
113
106
-
### 3. Consider origin preservation
114
+
### Consider Origin Preservation
115
+
107
116
When origin preservation is available, trapped assets are automatically associated with the original origin, making claiming easier without additional hints.
108
117
109
-
## Migration impact
118
+
## Migration Impact
110
119
111
120
This change makes XCM programs more resilient and user-friendly:
112
121
113
-
-**Reduced risk**: Assets are less likely to be permanently lost
114
-
-**Better UX**: Users can recover their own assets without waiting for governance
115
-
-**Increased adoption**: Lower risk encourages more XCM usage
116
-
-**Operational efficiency**: Reduces governance workload for routine recoveries
122
+
-**Reduced risk**: Assets are less likely to be permanently lost.
123
+
-**Better UX**: Users can recover their own assets without waiting for governance.
124
+
-**Increased adoption**: Lower risk encourages more XCM usage.
125
+
-**Operational efficiency**: Reduces governance workload for routine recoveries.
117
126
118
127
The `AssetClaimer` hint represents a significant improvement in XCM's fault tolerance and user experience, making cross-chain operations safer and more predictable.
description: How the AssetClaimer hint improves trapped asset recovery in XCMv5.
1793
+
description: Learn how the AssetClaimer hint improves trapped asset recovery in XCM V5, enabling automated recovery and reducing the need for governance intervention.
1794
1794
---
1795
1795
1796
-
# Asset claimer
1796
+
# Asset Claimer (XCM V4 → XCM V5)
1797
1797
1798
-
XCMv5 introduces the `AssetClaimer` execution hint through `SetHints`, which significantly simplifies the process of recovering trapped assets when XCM execution fails.
1798
+
XCMv5 introduces the [`AssetClaimer`](https://paritytech.github.io/polkadot-sdk/master/staging_xcm/v5/enum.Hint.html#variant.AssetClaimer){target=\_blank} execution hint through [`SetHints`](https://paritytech.github.io/polkadot-sdk/master/staging_xcm/v5/enum.Instruction.html#variant.SetHints){target=\_blank}, which significantly simplifies the process of recovering trapped assets when XCM execution fails.
1799
1799
1800
1800
## The problem before v5
1801
1801
1802
1802
When XCM execution failed and assets became trapped:
1803
1803
1804
-
- **Governance dependency**: Most trapped asset recovery required governance proposals
1805
-
- **Complex procedures**: Manual intervention through referendum processes
1806
-
- **Long delays**: Recovery could take weeks or months through governance
1807
-
- **Risk of loss**: Assets could remain permanently trapped if governance didn't act
1808
-
- **High barriers**: Small amounts often weren't worth the governance overhead
1804
+
- **Governance dependency**: Most trapped asset recovery required governance proposals.
1805
+
- **Complex procedures**: Manual intervention through referendum processes.
1806
+
- **Long delays**: Recovery could take weeks or months through governance.
1807
+
- **Risk of loss**: Assets could remain permanently trapped if governance didn't act.
1808
+
- **High barriers**: Small amounts often weren't worth the governance overhead.
1809
1809
1810
-
## The v5 solution: AssetClaimer hint
1810
+
## The V5 Solution: `AssetClaimer` Hint
1811
1811
1812
-
The new `AssetClaimer` hint allows XCM programs to preemptively designate who can claim trapped assets:
1812
+
The new [`AssetClaimer`](https://paritytech.github.io/polkadot-sdk/master/staging_xcm/v5/enum.Hint.html#variant.AssetClaimer){target=\_blank} hint allows XCM programs to preemptively designate who can claim trapped assets:
Particularly useful for setting local accounts on destination chains:
1882
1890
1883
1891
```typescript
@@ -1893,17 +1901,18 @@ const remoteXcm = [
1893
1901
]
1894
1902
```
1895
1903
1896
-
### 3. Consider origin preservation
1904
+
### Consider Origin Preservation
1905
+
1897
1906
When origin preservation is available, trapped assets are automatically associated with the original origin, making claiming easier without additional hints.
1898
1907
1899
-
## Migration impact
1908
+
## Migration Impact
1900
1909
1901
1910
This change makes XCM programs more resilient and user-friendly:
1902
1911
1903
-
- **Reduced risk**: Assets are less likely to be permanently lost
1904
-
- **Better UX**: Users can recover their own assets without waiting for governance
1905
-
- **Increased adoption**: Lower risk encourages more XCM usage
1906
-
- **Operational efficiency**: Reduces governance workload for routine recoveries
1912
+
- **Reduced risk**: Assets are less likely to be permanently lost.
1913
+
- **Better UX**: Users can recover their own assets without waiting for governance.
1914
+
- **Increased adoption**: Lower risk encourages more XCM usage.
1915
+
- **Operational efficiency**: Reduces governance workload for routine recoveries.
1907
1916
1908
1917
The `AssetClaimer` hint represents a significant improvement in XCM's fault tolerance and user experience, making cross-chain operations safer and more predictable.
0 commit comments