Skip to content

Commit

Permalink
Add fee asset customization docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo50 committed Apr 24, 2024
1 parent 2b2c088 commit c7dd2c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/sdk/xcmPallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Only the `from` parameter is provided, thus the Parachain to Relay chain scenari
```js
await Builder(api) //Api parameter is optional
.from('Acala') // Origin Parachain
.feeAsset(feeAsset) // Fee asset select id - optional
.amount(amount) // Token amount
.address(address) // AccountId32 address or custom Multilocation
.build() // Function called to build call
Expand All @@ -67,6 +68,7 @@ await paraspell.xcmPallet.send(
api?, //Api parameter (Optional)
origin, // Origin Parachain
amount, // Token amount
feeAsset? // Fee asset select id
to // AccountId32 or AccountKey20 address or custom Multilocation
paraIdTo?, //Custom destination parachain ID (Optional)
destApiForKeepAlive? //Api parameter for keep alive check (Optional)
Expand All @@ -92,6 +94,7 @@ Both `from` and `to` parameters are provided, thus the Parachain to Parachain sc
.from('Karura') // Origin Parachain
.to('Basilisk') // Destination Parachain //You can now add custom ParachainID eg. .to('Basilisk', 2024) or use custom Multilocation
.currency('KSM') // Token symbol (String) || TokenID (Number) or custom Multilocation
.feeAsset(feeAsset) // Fee asset select id - optional
.amount(amount) // Token amount
.address(address) // AccountId32 or AccountKey20 address or custom Multilocation
.build() // Function called to build call
Expand All @@ -105,6 +108,7 @@ await paraspell.xcmPallet.send(
api?, //Api parameter (Optional)
origin, // Origin Parachain
currency, // Token symbol (String) || TokenID (Number) or custom Multilocation
feeAsset? // Fee asset select id,
amount, // Token amount
to, // AccountId32 or AccountKey20 address or custom Multilocation
destination, // Destination Parachain or custom Multilocation
Expand Down

0 comments on commit c7dd2c3

Please sign in to comment.