@paraspell/sdk 11.2.3 → 11.3.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 CHANGED
@@ -428,11 +428,17 @@ let result = convertSs58(address, chain) // returns converted address in string
428
428
  For full documentation with examples on this feature, head over to [official documentation](https://paraspell.github.io/docs/sdk/AssetPallet.html).
429
429
 
430
430
  ```ts
431
- import { getSupportedDestinations, getFeeAssets, getAssetsObject, getAssetId, getRelayChainSymbol, getNativeAssets, getNativeAssets, getOtherAssets, getAllAssetsSymbols, hasSupportForAsset, getAssetDecimals, getParaId, getTChain, getAssetLocation, CHAINS } from '@paraspell/sdk'
431
+ import { getSupportedDestinations, getFeeAssets, getAssetsObject, getAssetId, getRelayChainSymbol, getNativeAssets, getNativeAssets, getOtherAssets, getAllAssetsSymbols, hasSupportForAsset, getAssetDecimals, getParaId, getTChain, getAssetLocation, CHAINS, findAssetInfo, findAssetInfoOrThrow } from '@paraspell/sdk'
432
432
 
433
433
  //Get chains that support the specific asset related to origin
434
434
  getSupportedDestinations(CHAIN, CURRENCY)
435
435
 
436
+ //Find out whether asset is registered on chain and return its entire parameters. If not found, returns null.
437
+ findAssetInfo(CHAIN, CURRENCY, DESTINATION?)
438
+
439
+ //Find out whether asset is registered on chain and return its entire parameters. If not found, returns error.
440
+ findAssetInfoOrThrow(CHAIN, CURRENCY, DESTINATION?)
441
+
436
442
  // Retrieve Fee asset queries (Assets accepted as XCM Fee on specific chain)
437
443
  getFeeAssets(CHAIN)
438
444