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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
-
title: Teleport Tokens Between Polkadot Rollups
3
-
description: A step-by-step guide to building, verifying, and executing a teleport from one Polkadot Rollup to another using the ParaSpell XCM SDK.
2
+
title: Transfer Tokens Between Parachains
3
+
description: A step-by-step guide to building, verifying, and executing a transfer from one Parachain to another Parachain using the ParaSpell XCM SDK.
4
4
---
5
5
6
-
# Teleport Tokens Between Polkadot Rollups
6
+
# Transfer Tokens Between Parachains
7
7
8
8
## Introduction
9
9
10
-
This guide walks you through teleporting tokens between two Polkadot Rollups—[Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}—using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}.
10
+
This guide walks you through transferring tokens between two Parachains—[Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}—using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}.
11
11
12
-
For development purposes, this guide will use the [Paseo TestNet](/develop/networks/#paseo){target=\_blank}, so the teleport will be from Paseo's Asset Hub to Paseo's People Chain.
12
+
For development purposes, this guide will use the [Paseo TestNet](/develop/networks/#paseo){target=\_blank}, so the token transfer will be from Paseo's Asset Hub to Paseo's People Chain.
13
13
14
14
You’ll learn how to:
15
15
16
-
- Build a teleport transaction.
17
-
- Perform a dry run to validate it.
16
+
- Build an XCM transfer transaction using ParaSpell XCM SDK.
17
+
- Perform a dry run to validate the transfer.
18
18
- Verify the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement on the destination chain.
19
19
- Retrieve information regarding the transfer, along with fee estimates.
20
20
- Submit the transaction.
@@ -29,8 +29,8 @@ You’ll learn how to:
29
29
Create the project folder:
30
30
31
31
```bash
32
-
mkdir paraspell-teleport
33
-
cd paraspell-teleport
32
+
mkdir paraspell-transfer
33
+
cd paraspell-transfer
34
34
```
35
35
36
36
Initialize the JavaScript project:
@@ -58,7 +58,7 @@ Be sure to fund this account with some PAS tokens on Passeo's Asset Hub using th
58
58
!!!note "Security Warning"
59
59
Never commit your mnemonic phrase in production code. Use environment variables or secure key management systems.
60
60
61
-
## Build a Teleport Transaction
61
+
## Build a Token Transfer Transaction
62
62
63
63
The next step is to build the transaction that you intend to execute.
64
64
@@ -150,16 +150,16 @@ bun run index.ts
150
150
151
151
Your `teleport` function will submit the transaction, and you will get the following output:
Once the transaction is successfully included in a block, you will see the recipient's account balance updated, and you will receive output similar to the one below.
156
156
157
157
???- code "Successful Transaction Submission"
158
158
This output will be returned once the transaction has been successfully included in a block.
After executing the teleport, check the account balance on [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo){target=\_blank} for [Paseo's Asset Hub](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo#/accounts){target=\_blank} and [Paseo's People Chain](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.ibp.network%2Fpeople-paseo#/accounts){target=\_blank}.
162
+
After executing the transfer, check the account balance on [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo){target=\_blank} for [Paseo's Asset Hub](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo#/accounts){target=\_blank} and [Paseo's People Chain](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.ibp.network%2Fpeople-paseo#/accounts){target=\_blank}.
description: A step-by-step guide to building, verifying, and executing a teleport from one Polkadot Rollup to another using the ParaSpell XCM SDK.
17253
+
title: Transfer Tokens Between Parachains
17254
+
description: A step-by-step guide to building, verifying, and executing a transfer from one Parachain to another Parachain using the ParaSpell XCM SDK.
17255
17255
---
17256
17256
17257
-
# Teleport Tokens Between Polkadot Rollups
17257
+
# Transfer Tokens Between Parachains
17258
17258
17259
17259
## Introduction
17260
17260
17261
-
This guide walks you through teleporting tokens between two Polkadot Rollups—[Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}—using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}.
17261
+
This guide walks you through transferring tokens between two Parachains—[Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}—using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}.
17262
17262
17263
-
For development purposes, this guide will use the [Paseo TestNet](/develop/networks/#paseo){target=\_blank}, so the teleport will be from Paseo's Asset Hub to Paseo's People Chain.
17263
+
For development purposes, this guide will use the [Paseo TestNet](/develop/networks/#paseo){target=\_blank}, so the token transfer will be from Paseo's Asset Hub to Paseo's People Chain.
17264
17264
17265
17265
You’ll learn how to:
17266
17266
17267
-
- Build a teleport transaction.
17268
-
- Perform a dry run to validate it.
17267
+
- Build an XCM transfer transaction using ParaSpell XCM SDK.
17268
+
- Perform a dry run to validate the transfer.
17269
17269
- Verify the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement on the destination chain.
17270
17270
- Retrieve information regarding the transfer, along with fee estimates.
17271
17271
- Submit the transaction.
@@ -17280,8 +17280,8 @@ You’ll learn how to:
17280
17280
Create the project folder:
17281
17281
17282
17282
```bash
17283
-
mkdir paraspell-teleport
17284
-
cd paraspell-teleport
17283
+
mkdir paraspell-transfer
17284
+
cd paraspell-transfer
17285
17285
```
17286
17286
17287
17287
Initialize the JavaScript project:
@@ -17335,7 +17335,7 @@ Be sure to fund this account with some PAS tokens on Passeo's Asset Hub using th
17335
17335
!!!note "Security Warning"
17336
17336
Never commit your mnemonic phrase in production code. Use environment variables or secure key management systems.
17337
17337
17338
-
## Build a Teleport Transaction
17338
+
## Build a Token Transfer Transaction
17339
17339
17340
17340
The next step is to build the transaction that you intend to execute.
17341
17341
@@ -17344,7 +17344,7 @@ In this example, you will teleport 10 PAS tokens from Paseo's Asset Hub to Paseo
17344
17344
Add the ParaSpell transaction code to your `index.ts` file:
17345
17345
17346
17346
```ts title="index.ts"
17347
-
async function teleport() {
17347
+
async function transfer() {
17348
17348
const signer = getSigner();
17349
17349
17350
17350
const tx = await Builder()
@@ -17373,7 +17373,7 @@ Dry runs simulate the transaction without broadcasting it, allowing you to confi
17373
17373
Add the following dry run code to your `index.ts` script:
17374
17374
17375
17375
```ts title="index.ts"
17376
-
async function dryRunTeleport() {
17376
+
async function dryRunTransfer() {
17377
17377
if (!hasDryRunSupport('AssetHubPaseo')) {
17378
17378
console.log('Dry run is not supported on AssetHubPaseo.');
17379
17379
return;
@@ -17393,7 +17393,7 @@ async function dryRunTeleport() {
@@ -17661,7 +17661,7 @@ Now you can execute the teleport function by adding the following statement:
17661
17661
Add the following code:
17662
17662
17663
17663
```typescript title="index.ts"
17664
-
teleport();
17664
+
transfer();
17665
17665
```
17666
17666
17667
17667
And execute your teleport:
@@ -17995,7 +17995,7 @@ Once the transaction is successfully included in a block, you will see the recip
17995
17995
}</span>
17996
17996
</div>
17997
17997
17998
-
After executing the teleport, check the account balance on [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo){target=\_blank} for [Paseo's Asset Hub](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo#/accounts){target=\_blank} and [Paseo's People Chain](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.ibp.network%2Fpeople-paseo#/accounts){target=\_blank}.
17998
+
After executing the transfer, check the account balance on [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo){target=\_blank} for [Paseo's Asset Hub](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.turboflakes.io%2Fasset-hub-paseo#/accounts){target=\_blank} and [Paseo's People Chain](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.ibp.network%2Fpeople-paseo#/accounts){target=\_blank}.
Copy file name to clipboardExpand all lines: llms.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@
90
90
- [Wallets](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/integrations/wallets.md): Explore blockchain wallets. Securely manage digital assets with hot wallets for online access or cold wallets for offline, enhanced security.
91
91
- [Interoperability](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/index.md): Explore Polkadot's XCM tooling ecosystem, featuring utilities for implementing cross-chain messaging and transfers.
92
92
- [ParaSpell XCM SDK](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/paraspell-xcm-sdk/index.md): A powerful open-source library that simplifies XCM integration, enabling developers to easily build interoperable dApps on Polkadot.
93
-
- [Teleport Tokens Between Polkadot Rollups](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/paraspell-xcm-sdk/teleport-tokens-between-polkadot-rollups.md): A step-by-step guide to building, verifying, and executing a teleport from one Polkadot Rollup to another using the ParaSpell XCM SDK.
93
+
- [Transfer Tokens Between Parachains](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/paraspell-xcm-sdk/transfer-tokens-between-parachains.md): A step-by-step guide to building, verifying, and executing a transfer from one Parachain to another Parachain using the ParaSpell XCM SDK.
94
94
- [XCM Tools](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/xcm-tools.md): Explore essential XCM tools across Polkadot, crafted to enhance cross-chain functionality and integration within the ecosystem.
95
95
- [E2E Testing on Polkadot SDK Chains](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/parachains/e2e-testing/index.md): Discover a suite of tools for E2E testing on Polkadot SDK-based blockchains, including configuration management, automation, and debugging utilities.
96
96
- [E2E Testing with Moonwall](https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/parachains/e2e-testing/moonwall.md): Enhance blockchain end-to-end testing with Moonwall's standardized environment setup, comprehensive configuration management, and simple network interactions.
0 commit comments