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: develop/toolkit/interoperability/paraspell-xcm-sdk/transfer-tokens-between-parachains.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ description: A step-by-step guide to building, verifying, and executing a transf
7
7
8
8
## Introduction
9
9
10
-
This guide walks you through transferring tokens between two parachains using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}. This example uses [Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}, but the same approach applies to transfers between any parachain.
10
+
This guide walks you through transferring tokens between two parachains using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}. This example uses [Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}, but the same approach can apply to transfers between other parachains.
11
11
12
12
For development purposes, this guide will use the [Polkadot TestNet](/develop/networks/#paseo){target=\_blank}, so the transferred token will be PAS.
13
13
14
-
You’ll learn how to:
14
+
In this guide, you’ll learn how to:
15
15
16
16
- Build an XCM transfer transaction using ParaSpell XCM SDK.
17
17
- Perform a dry run to validate the transfer.
@@ -24,7 +24,7 @@ You’ll learn how to:
24
24
- Knowledge of the [fundamentals of Polkadot](/polkadot-protocol/parachain-basics/){target=\_blank}
25
25
- Basic understanding of [XCM](/develop/interoperability/intro-to-xcm/){target=\_blank}
26
26
- Basic familiarity with JavaScript/TypeScript
27
-
- Install [bun](https://bun.com/docs/installation){target=\_blank}, a fast JavaScript/TypeScript runtime and package manager
27
+
- Install [bun](https://bun.com/docs/installation){target=\_blank}, a JavaScript/TypeScript package manager
28
28
29
29
## Initialize Your Project
30
30
@@ -69,7 +69,7 @@ In this example, you will transfer 10 PAS tokens from Paseo's Asset Hub to Paseo
69
69
Add the ParaSpell transaction code to your `index.ts` file:
@@ -98,9 +98,9 @@ The result of the dry run will be similar to this:
98
98
Check if the recipient account meets the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement before sending by using [`verifyEdOnDestination`](https://paraspell.github.io/docs/sdk/xcmUtils.html#verify-ed-on-destination){target=\_blank}:
Comment out the `dryRunTransfer()` and execute the code by running:
103
+
Comment out the `dryRunTransfer()` and execute the `verifyED()` by running:
104
104
105
105
```bash
106
106
bun run index.ts
@@ -117,10 +117,10 @@ Before sending an XCM transaction, it is helpful to estimate the fees associated
117
117
ParaSpell has a helpful function for this: [`getTransferInfo()`](https://paraspell.github.io/docs/sdk/xcmUtils.html#xcm-transfer-info){target=\_blank}. This function returns an estimate of the associated XCM fees, along with the account's balance before and after the fees are paid.
Copy file name to clipboardExpand all lines: llms-full.txt
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17258,11 +17258,11 @@ description: A step-by-step guide to building, verifying, and executing a transf
17258
17258
17259
17259
## Introduction
17260
17260
17261
-
This guide walks you through transferring tokens between two parachains using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}. This example uses [Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}, but the same approach applies to transfers between any parachain.
17261
+
This guide walks you through transferring tokens between two parachains using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}. This example uses [Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}, but the same approach can apply to transfers between other parachains.
17262
17262
17263
17263
For development purposes, this guide will use the [Polkadot TestNet](/develop/networks/#paseo){target=\_blank}, so the transferred token will be PAS.
17264
17264
17265
-
You’ll learn how to:
17265
+
In this guide, you’ll learn how to:
17266
17266
17267
17267
- Build an XCM transfer transaction using ParaSpell XCM SDK.
17268
17268
- Perform a dry run to validate the transfer.
@@ -17275,7 +17275,7 @@ You’ll learn how to:
17275
17275
- Knowledge of the [fundamentals of Polkadot](/polkadot-protocol/parachain-basics/){target=\_blank}
17276
17276
- Basic understanding of [XCM](/develop/interoperability/intro-to-xcm/){target=\_blank}
17277
17277
- Basic familiarity with JavaScript/TypeScript
17278
-
- Install [bun](https://bun.com/docs/installation){target=\_blank}, a fast JavaScript/TypeScript runtime and package manager
17278
+
- Install [bun](https://bun.com/docs/installation){target=\_blank}, a JavaScript/TypeScript package manager
17279
17279
17280
17280
## Initialize Your Project
17281
17281
@@ -17363,6 +17363,7 @@ async function transfer() {
0 commit comments