dispatch_as: TxDescriptor<
    {
        as_origin: Enum<
            {
                CumulusXcm: Enum<{ Relay: undefined; SiblingParachain: number }>;
                PolkadotXcm: Enum<
                    {
                        Response: {
                            interior: Enum<
                                {
                                    Here: undefined;
                                    X1: Enum<
                                        {
                                            AccountId32: ...;
                                            AccountIndex64: ...;
                                            AccountKey20: ...;
                                            GeneralIndex: ...;
                                            GeneralKey: ...;
                                            GlobalConsensus: ...;
                                            OnlyChild: ...;
                                            PalletInstance: ...;
                                            Parachain: ...;
                                            Plurality: ...;
                                        },
                                    >;
                                    X2: FixedSizeArray<2, Enum<(...)>>;
                                    X3: FixedSizeArray<3, Enum<(...)>>;
                                    X4: FixedSizeArray<4, Enum<(...)>>;
                                    X5: FixedSizeArray<5, Enum<(...)>>;
                                    X6: FixedSizeArray<6, Enum<(...)>>;
                                    X7: FixedSizeArray<7, Enum<(...)>>;
                                    X8: FixedSizeArray<8, Enum<(...)>>;
                                },
                            >;
                            parents: number;
                        };
                        Xcm: {
                            interior: Enum<
                                {
                                    Here: undefined;
                                    X1: Enum<
                                        {
                                            AccountId32: ...;
                                            AccountIndex64: ...;
                                            AccountKey20: ...;
                                            GeneralIndex: ...;
                                            GeneralKey: ...;
                                            GlobalConsensus: ...;
                                            OnlyChild: ...;
                                            PalletInstance: ...;
                                            Parachain: ...;
                                            Plurality: ...;
                                        },
                                    >;
                                    X2: FixedSizeArray<2, Enum<(...)>>;
                                    X3: FixedSizeArray<3, Enum<(...)>>;
                                    X4: FixedSizeArray<4, Enum<(...)>>;
                                    X5: FixedSizeArray<5, Enum<(...)>>;
                                    X6: FixedSizeArray<6, Enum<(...)>>;
                                    X7: FixedSizeArray<7, Enum<(...)>>;
                                    X8: FixedSizeArray<8, Enum<(...)>>;
                                },
                            >;
                            parents: number;
                        };
                    },
                >;
                system: DispatchRawOrigin;
                Void: undefined;
            },
        >;
        call: TxCallData;
    },
>

Dispatches a function call with a provided origin.

The dispatch origin for this call must be Root.

  • O(1).