query_weight_to_asset_fee: RuntimeDescriptor<[weight: {
    proof_size: bigint;
    ref_time: bigint;
}, asset: Enum<{
    V3: XcmV3MultiassetAssetId;
    V4: {
        interior: XcmV3Junctions;
        parents: number;
    };
    V5: {
        interior: Enum<{
            Here: undefined;
            X1: Enum<{
                AccountId32: {
                    id: ...;
                    network?: ...;
                };
                AccountIndex64: {
                    index: ...;
                    network?: ...;
                };
                AccountKey20: {
                    key: ...;
                    network?: ...;
                };
                GeneralIndex: bigint;
                GeneralKey: {
                    data: ...;
                    length: ...;
                };
                GlobalConsensus: Enum<(...)>;
                OnlyChild: undefined;
                PalletInstance: number;
                Parachain: number;
                Plurality: {
                    id: ...;
                    part: ...;
                };
            }>;
            X2: FixedSizeArray<2, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
            X3: FixedSizeArray<3, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
            X4: FixedSizeArray<4, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
            X5: FixedSizeArray<5, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
            X6: FixedSizeArray<6, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
            X7: FixedSizeArray<7, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
            X8: FixedSizeArray<8, Enum<{
                AccountId32: ...;
                AccountIndex64: ...;
                AccountKey20: ...;
                GeneralIndex: ...;
                GeneralKey: ...;
                GlobalConsensus: ...;
                OnlyChild: ...;
                PalletInstance: ...;
                Parachain: ...;
                Plurality: ...;
            }>>;
        }>;
        parents: number;
    };
}>], ResultPayload<bigint, Enum<{
    AssetNotFound: undefined;
    UnhandledXcmVersion: undefined;
    Unimplemented: undefined;
    Unroutable: undefined;
    VersionedConversionFailed: undefined;
    WeightNotComputable: undefined;
}>>>

Converts a weight into a fee for the specified AssetId.

Arguments

  • weight: convertible Weight.
  • asset: VersionedAssetId.