Namespace Types

Descriptors types

These are the types used in API calls and imported out of descriptors

For example, XcmVersionedLocation is an enum:

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)),
}),

Type Aliases

__Circular
ArithmeticError
AssetRateEvent
BabeAllowedSlots
BabeDigestsNextConfigDescriptor
BabeDigestsPreDigest
BagsListEvent
BagsListListListError
BalancesAdjustmentDirection
BalanceStatus
BalancesTypesReasons
BountiesBountyStatus
BountiesEvent
BrokerCoretimeInterfaceCoreAssignment
CandidateEvent
ChildBountiesEvent
ChildBountyStatus
ClaimsStatementKind
CommonAuctionsEvent
CommonClaimsEvent
CommonCrowdloanLastContribution
CommonParasRegistrarEvent
CommonSlotsEvent
ConvictionVotingEvent
ConvictionVotingVoteAccountVote
ConvictionVotingVoteVoting
CoreState
DigestItem
DispatchClass
DispatchRawOrigin
ElectionProviderMultiPhaseElectionCompute
ElectionProviderMultiPhaseEvent
ElectionProviderMultiPhasePhase
GovernanceOrigin
GrandpaEquivocation
GrandpaEvent
GrandpaStoredState
IndicesEvent
InvalidDisputeStatementKind
MmrPrimitivesError
MultiAddress
MultiSignature
MultiSigner
NominationPoolsBondExtra
NominationPoolsClaimPermission
NominationPoolsCommissionClaimPermission
NominationPoolsConfigOp
NominationPoolsEvent
NominationPoolsPalletFreezeReason
NominationPoolsPoolState
OccupiedCoreAssumption
OffencesEvent
ParachainsDisputeLocation
ParachainsDisputeResult
ParachainsDisputesEvent
ParachainsHrmpEvent
ParachainsInclusionAggregateMessageOrigin
ParachainsInclusionEvent
ParachainsInclusionUmpQueueId
ParachainsOrigin
ParachainsParasEvent
ParachainsParasParaLifecycle
Phase
PolkadotPrimitivesV6DisputeStatement
PolkadotPrimitivesV6ExecutorParamsExecutorParam
PolkadotPrimitivesV6PvfPrepKind
PolkadotPrimitivesV6ValidDisputeStatementKind
PolkadotRuntimeOriginCaller
PolkadotRuntimeParachainsCoretimeEvent
PolkadotRuntimeParachainsSchedulerCommonAssignment
PolkadotRuntimeParachainsSchedulerPalletCoreOccupied
PreimageEvent
PreimageOldRequestStatus
PreimagePalletHoldReason
PreimageRequestStatus
PreimagesBounded
PvfExecKind
ReferendaTypesCurve
SessionEvent
SlashingOffenceKind
StakingEvent
StakingForcing
StakingPalletConfigOp
StakingPalletConfigOpBig
StakingRewardDestination
TokenError
TraitsScheduleDispatchTime
TransactionalError
TransactionPaymentEvent
TransactionPaymentReleases
TransactionValidityError
TransactionValidityInvalidTransaction
TransactionValidityTransactionSource
TransactionValidityUnknownTransaction
TreasuryPaymentState
UpgradeGoAhead
UpgradeRestriction
ValidityAttestation
Version
VersionedLocatableAsset
VestingEvent
VotingConviction
WestendRuntimeRuntimeFreezeReason
XcmPalletOrigin
XcmPalletQueryStatus
XcmPalletVersionMigrationStage
XcmV2BodyId
XcmV2Instruction
XcmV2Junction
XcmV2JunctionBodyPart
XcmV2MultiassetAssetId
XcmV2MultiassetAssetInstance
XcmV2MultiAssetFilter
XcmV2MultiassetFungibility
XcmV2MultiassetWildFungibility
XcmV2MultiassetWildMultiAsset
XcmV2MultilocationJunctions
XcmV2NetworkId
XcmV2OriginKind
XcmV2Response
XcmV2TraitsError
XcmV2WeightLimit
XcmV3Instruction
XcmV3Junction
XcmV3JunctionBodyId
XcmV3JunctionNetworkId
XcmV3Junctions
XcmV3MaybeErrorCode
XcmV3MultiassetAssetId
XcmV3MultiassetAssetInstance
XcmV3MultiassetFungibility
XcmV3MultiassetMultiAssetFilter
XcmV3MultiassetWildMultiAsset
XcmV3Response
XcmV3TraitsError
XcmV3WeightLimit
XcmV4AssetAssetFilter
XcmV4AssetWildAsset
XcmV4Instruction
XcmV4Response
XcmV4TraitsOutcome
XcmVersionedAssetId
XcmVersionedAssets
XcmVersionedLocation
XcmVersionedResponse
XcmVersionedXcm