@paraspell/sdk-pjs 11.10.0 → 11.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -356,6 +356,18 @@ const transferable = await Builder(/*chain api/builder_config/ws_url_string/ws_u
|
|
|
356
356
|
.getMinTransferableAmount()
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
+
#### Receivable amount
|
|
360
|
+
```ts
|
|
361
|
+
const receivable = await Builder(/*chain api/builder_config/ws_url_string/ws_url_array - optional*/)
|
|
362
|
+
.from(ORIGIN_CHAIN)
|
|
363
|
+
.to(DESTINATION_CHAIN)
|
|
364
|
+
.currency(CURRENCY)
|
|
365
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in the same fee asset as selected currency.*/
|
|
366
|
+
.address(RECIPIENT_ADDRESS)
|
|
367
|
+
.senderAddress(SENDER_ADDRESS)
|
|
368
|
+
.getReceivableAmount()
|
|
369
|
+
```
|
|
370
|
+
|
|
359
371
|
#### Verify ED on destination
|
|
360
372
|
```ts
|
|
361
373
|
const ed = await Builder(/*chain api/builder_config/ws_url_string/ws_url_array - optional*/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.11.0",
|
|
4
4
|
"description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@snowbridge/contract-types": "0.2.0",
|
|
28
28
|
"ethers": "^6.15.0",
|
|
29
29
|
"viem": "^2.37.9",
|
|
30
|
-
"@paraspell/sdk-core": "11.
|
|
30
|
+
"@paraspell/sdk-core": "11.11.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 16.0 < 17",
|