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
@@ -96,7 +96,7 @@ The result of the dry run will be similar to this:
96
96
Check if the recipient account meets the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement before sending:
@@ -115,7 +115,7 @@ Before sending an XCM transaction, it is helpful to estimate the fees associated
115
115
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
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18797,7 +18797,8 @@ In this example, you will teleport 10 PAS tokens from Asset Hub Paseo to the Pas
18797
18797
Add the ParaSpell transaction code to your `index.ts` file:
18798
18798
18799
18799
```ts title="index.ts"
18800
-
const signer = getSigner();
18800
+
async function teleport() {
18801
+
const signer = getSigner();
18801
18802
18802
18803
const tx = await Builder()
18803
18804
.from('AssetHubPaseo')
@@ -18825,7 +18826,8 @@ Dry runs simulate the transaction without broadcasting it, allowing you to confi
18825
18826
Add the following dry run code to your `index.ts` script:
18826
18827
18827
18828
```ts title="index.ts"
18828
-
if (!hasDryRunSupport('AssetHubPaseo')) {
18829
+
async function dryRunTeleport() {
18830
+
if (!hasDryRunSupport('AssetHubPaseo')) {
18829
18831
console.log('Dry run is not supported on AssetHubPaseo.');
18830
18832
return;
18831
18833
}
@@ -18968,7 +18970,8 @@ The result of the dry run will be similar to this:
18968
18970
Check if the recipient account meets the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement before sending:
18969
18971
18970
18972
```ts title="index.ts"
18971
-
const isValid = await Builder()
18973
+
async function verifyED() {
18974
+
const isValid = await Builder()
18972
18975
.from('AssetHubPaseo')
18973
18976
.to('Paseo')
18974
18977
.currency({
@@ -19005,7 +19008,8 @@ Before sending an XCM transaction, it is helpful to estimate the fees associated
19005
19008
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.
19006
19009
19007
19010
```ts title="index.ts"
19008
-
const info = await Builder()
19011
+
async function XcmTransferInfo() {
19012
+
const info = await Builder()
19009
19013
.from('AssetHubPaseo')
19010
19014
.to('Paseo')
19011
19015
.currency({
@@ -19088,7 +19092,7 @@ You can execute the teleport transaction with confidence.
0 commit comments