Skip to content

Commit 5f0a689

Browse files
committed
Revise content to generic XCM transfer between parachains
1 parent 49e7abc commit 5f0a689

File tree

7 files changed

+36
-36
lines changed

7 files changed

+36
-36
lines changed

.snippets/code/develop/toolkit/interoperability/paraspell/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function getSigner() {
2626
const RECIPIENT_ADDRESS = ss58Address(getSigner().publicKey);
2727
const SENDER_ADDRESS = ss58Address(getSigner().publicKey);
2828

29-
async function teleport() {
29+
async function transfer() {
3030
const signer = getSigner();
3131

3232
const tx = await Builder()
@@ -45,7 +45,7 @@ async function teleport() {
4545
console.log(inspect(result, { colors: true, depth: null }));
4646
}
4747

48-
async function dryRunTeleport() {
48+
async function dryRunTransfer() {
4949
if (!hasDryRunSupport('AssetHubPaseo')) {
5050
console.log('Dry run is not supported on AssetHubPaseo.');
5151
return;
@@ -65,7 +65,7 @@ async function dryRunTeleport() {
6565
console.log(inspect(tx, { colors: true, depth: null }));
6666
}
6767

68-
dryRunTeleport();
68+
dryRunTransfer();
6969

7070
async function verifyED() {
7171
const isValid = await Builder()
@@ -101,4 +101,4 @@ async function XcmTransferInfo() {
101101

102102
XcmTransferInfo();
103103

104-
teleport();
104+
transfer();

.snippets/code/develop/toolkit/interoperability/paraspell/teleport-callback-output.html renamed to .snippets/code/develop/toolkit/interoperability/paraspell/transfer-callback-output.html

File renamed without changes.

.snippets/code/develop/toolkit/interoperability/paraspell/teleport-output.html renamed to .snippets/code/develop/toolkit/interoperability/paraspell/transfer-output.html

File renamed without changes.

develop/toolkit/interoperability/paraspell-xcm-sdk/.nav.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ title: ParaSpell XCM SDK
22
hide: false
33
nav:
44
- index.md
5-
- 'Teleport Tokens Between Polkadot Rollups': teleport-tokens-between-polkadot-rollups.md
5+
- 'Transfer Tokens Between Parachains': transfer-tokens-between-parachains.md

develop/toolkit/interoperability/paraspell-xcm-sdk/teleport-tokens-between-polkadot-rollups.md renamed to develop/toolkit/interoperability/paraspell-xcm-sdk/transfer-tokens-between-parachains.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
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.
44
---
55

6-
# Teleport Tokens Between Polkadot Rollups
6+
# Transfer Tokens Between Parachains
77

88
## Introduction
99

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}.
1111

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.
1313

1414
You’ll learn how to:
1515

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.
1818
- Verify the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement on the destination chain.
1919
- Retrieve information regarding the transfer, along with fee estimates.
2020
- Submit the transaction.
@@ -29,8 +29,8 @@ You’ll learn how to:
2929
Create the project folder:
3030

3131
```bash
32-
mkdir paraspell-teleport
33-
cd paraspell-teleport
32+
mkdir paraspell-transfer
33+
cd paraspell-transfer
3434
```
3535

3636
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
5858
!!!note "Security Warning"
5959
Never commit your mnemonic phrase in production code. Use environment variables or secure key management systems.
6060

61-
## Build a Teleport Transaction
61+
## Build a Token Transfer Transaction
6262

6363
The next step is to build the transaction that you intend to execute.
6464

@@ -150,16 +150,16 @@ bun run index.ts
150150

151151
Your `teleport` function will submit the transaction, and you will get the following output:
152152

153-
--8<-- 'code/develop/toolkit/interoperability/paraspell/teleport-output.html'
153+
--8<-- 'code/develop/toolkit/interoperability/paraspell/transfer-output.html'
154154

155155
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.
156156

157157
???- code "Successful Transaction Submission"
158158
This output will be returned once the transaction has been successfully included in a block.
159159

160-
--8<-- 'code/develop/toolkit/interoperability/paraspell/teleport-callback-output.html'
160+
--8<-- 'code/develop/toolkit/interoperability/paraspell/transfer-callback-output.html'
161161

162-
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}.
163163

164164
You should see:
165165

llms-full.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/re
9292
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/integrations/wallets.md
9393
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/index.md
9494
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/paraspell-xcm-sdk/index.md
95-
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/paraspell-xcm-sdk/teleport-tokens-between-polkadot-rollups.md
95+
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/paraspell-xcm-sdk/transfer-tokens-between-parachains.md
9696
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/interoperability/xcm-tools.md
9797
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/parachains/e2e-testing/index.md
9898
Doc-Page: https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/refs/heads/master/develop/toolkit/parachains/e2e-testing/moonwall.md
@@ -17247,25 +17247,25 @@ By using the ParaSpell XCM SDK, developers can significantly accelerate their de
1724717247
:::INSERT_IN_THIS_SECTION:::
1724817248
--- END CONTENT ---
1724917249

17250-
Doc-Content: https://docs.polkadot.com/develop/toolkit/interoperability/paraspell-xcm-sdk/teleport-tokens-between-polkadot-rollups/
17250+
Doc-Content: https://docs.polkadot.com/develop/toolkit/interoperability/paraspell-xcm-sdk/transfer-tokens-between-parachains/
1725117251
--- BEGIN CONTENT ---
1725217252
---
17253-
title: Teleport Tokens Between Polkadot Rollups
17254-
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.
1725517255
---
1725617256

17257-
# Teleport Tokens Between Polkadot Rollups
17257+
# Transfer Tokens Between Parachains
1725817258

1725917259
## Introduction
1726017260

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}.
1726217262

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.
1726417264

1726517265
You’ll learn how to:
1726617266

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.
1726917269
- Verify the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement on the destination chain.
1727017270
- Retrieve information regarding the transfer, along with fee estimates.
1727117271
- Submit the transaction.
@@ -17280,8 +17280,8 @@ You’ll learn how to:
1728017280
Create the project folder:
1728117281

1728217282
```bash
17283-
mkdir paraspell-teleport
17284-
cd paraspell-teleport
17283+
mkdir paraspell-transfer
17284+
cd paraspell-transfer
1728517285
```
1728617286

1728717287
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
1733517335
!!!note "Security Warning"
1733617336
Never commit your mnemonic phrase in production code. Use environment variables or secure key management systems.
1733717337

17338-
## Build a Teleport Transaction
17338+
## Build a Token Transfer Transaction
1733917339

1734017340
The next step is to build the transaction that you intend to execute.
1734117341

@@ -17344,7 +17344,7 @@ In this example, you will teleport 10 PAS tokens from Paseo's Asset Hub to Paseo
1734417344
Add the ParaSpell transaction code to your `index.ts` file:
1734517345

1734617346
```ts title="index.ts"
17347-
async function teleport() {
17347+
async function transfer() {
1734817348
const signer = getSigner();
1734917349

1735017350
const tx = await Builder()
@@ -17373,7 +17373,7 @@ Dry runs simulate the transaction without broadcasting it, allowing you to confi
1737317373
Add the following dry run code to your `index.ts` script:
1737417374

1737517375
```ts title="index.ts"
17376-
async function dryRunTeleport() {
17376+
async function dryRunTransfer() {
1737717377
if (!hasDryRunSupport('AssetHubPaseo')) {
1737817378
console.log('Dry run is not supported on AssetHubPaseo.');
1737917379
return;
@@ -17393,7 +17393,7 @@ async function dryRunTeleport() {
1739317393
console.log(inspect(tx, { colors: true, depth: null }));
1739417394
}
1739517395

17396-
dryRunTeleport();
17396+
dryRunTransfer();
1739717397
```
1739817398
Go ahead and run the script.
1739917399

@@ -17661,7 +17661,7 @@ Now you can execute the teleport function by adding the following statement:
1766117661
Add the following code:
1766217662

1766317663
```typescript title="index.ts"
17664-
teleport();
17664+
transfer();
1766517665
```
1766617666

1766717667
And execute your teleport:
@@ -17995,7 +17995,7 @@ Once the transaction is successfully included in a block, you will see the recip
1799517995
}</span>
1799617996
</div>
1799717997

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}.
1799917999

1800018000
You should see:
1800118001

llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
- [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.
9191
- [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.
9292
- [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.
9494
- [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.
9595
- [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.
9696
- [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

Comments
 (0)