@paraspell/sdk 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.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -358,6 +358,18 @@ const transferable = await Builder(/*chain api/builder_config/ws_url_string/ws_u
358
358
  .getMinTransferableAmount()
359
359
  ```
360
360
 
361
+ #### Receivable amount
362
+ ```ts
363
+ const receivable = await Builder(/*chain api/builder_config/ws_url_string/ws_url_array - optional*/)
364
+ .from(ORIGIN_CHAIN)
365
+ .to(DESTINATION_CHAIN)
366
+ .currency(CURRENCY)
367
+ /*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in the same fee asset as selected currency.*/
368
+ .address(RECIPIENT_ADDRESS)
369
+ .senderAddress(SENDER_ADDRESS)
370
+ .getReceivableAmount()
371
+ ```
372
+
361
373
  #### Verify ED on destination
362
374
  ```ts
363
375
  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",
3
- "version": "11.10.0",
3
+ "version": "11.11.0",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@polkadot-api/legacy-provider": "^0.3.3",
28
28
  "viem": "^2.37.9",
29
- "@paraspell/sdk-core": "11.10.0"
29
+ "@paraspell/sdk-core": "11.11.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "polkadot-api": ">= 1.20.0 < 2"