Skip to content

Commit c563676

Browse files
committed
Update xcmPallet.md
1 parent f004467 commit c563676

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/sdk/xcmPallet.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,22 @@ const hash = await EvmBuilder()
260260
.build()
261261
```
262262
263+
### Asset claim:
264+
Claim XCM trapped assets from the selected chain.
265+
266+
```ts
267+
const builder = Builder(/*node api/ws_url_string/ws_url_array - optional*/)
268+
.claimFrom(NODE)
269+
.fungible(MultilocationArray (Only one multilocation allowed) [{Multilocation}])
270+
.account(address | Multilocation object)
271+
/*.xcmVersion(Version.V3) Optional parameter, by default V3. XCM Version ENUM if a different XCM version is needed (Supported V2 & V3). Requires importing Version enum.*/
272+
273+
const tx = await builder.build()
274+
275+
//Make sure to disconnect API after it is no longer used (eg. after transaction)
276+
await builder.disconnect()
277+
```
278+
263279
## Dry run your XCM Calls
264280
265281
Dry running let's you check whether your XCM Call will execute, giving you a chance to fix it if it is constructed wrongly or you didn't select correct account/asset or don't have enough balance. It is constructed in same way as standard XCM messages with parameter `.dryRun()` instead of `.build()`

0 commit comments

Comments
 (0)