Descriptors types
These are the types used in API calls and imported out of descriptors
For example, XcmVersionedLocation is an enum:
XcmVersionedLocation
XcmVersionedLocation: Enum<{ V2: { ... }; V3: { interior: XcmV3Junctions; parents: number; }; V4: { ... };}> Copy
XcmVersionedLocation: Enum<{ V2: { ... }; V3: { interior: XcmV3Junctions; parents: number; }; V4: { ... };}>
and can be used like this
import { XcmVersionedLocation, XcmV3Junctions } from "@polkadot-api/descriptors"await typedApi.tx.XcmPallet.limited_teleport_assets({ dest: XcmVersionedLocation.V3({ parents: 0, interior: XcmV3Junctions.X1(XcmV3Junction.Parachain(parachain_id)), }), Copy
import { XcmVersionedLocation, XcmV3Junctions } from "@polkadot-api/descriptors"await typedApi.tx.XcmPallet.limited_teleport_assets({ dest: XcmVersionedLocation.V3({ parents: 0, interior: XcmV3Junctions.X1(XcmV3Junction.Parachain(parachain_id)), }),
Descriptors types
These are the types used in API calls and imported out of descriptors
For example,
XcmVersionedLocation
is an enum:and can be used like this