@paraspell/sdk 11.4.2 → 11.5.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
@@ -345,6 +345,18 @@ const transferable = await Builder(/*chain api/builder_config/ws_url_string/ws_u
345
345
  .getTransferableAmount()
346
346
  ```
347
347
 
348
+ #### Minimal transferable amount
349
+ ```ts
350
+ const transferable = await Builder(/*chain api/builder_config/ws_url_string/ws_url_array - optional*/)
351
+ .from(ORIGIN_CHAIN)
352
+ .to(DESTINATION_CHAIN)
353
+ .currency(CURRENCY)
354
+ /*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in the same fee asset as selected currency.*/
355
+ .address(RECIPIENT_ADDRESS)
356
+ .senderAddress(SENDER_ADDRESS)
357
+ .getMinTransferableAmount()
358
+ ```
359
+
348
360
  #### Verify ED on destination
349
361
  ```ts
350
362
  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.4.2",
3
+ "version": "11.5.0",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "viem": "^2.36.0",
28
- "@paraspell/sdk-core": "11.4.2"
28
+ "@paraspell/sdk-core": "11.5.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "polkadot-api": ">= 1.16.3 < 2"