pub fn export_xcm<T: ExportXcm>(
    network: NetworkId,
    channel: u32,
    universal_source: InteriorMultiLocation,
    dest: InteriorMultiLocation,
    msg: Xcm<()>
) -> Result<(XcmHash, MultiAssets), SendError>
Expand description

Convenience function for using a SendXcm implementation. Just interprets the dest and wraps both in Some before passing them as as mutable references into T::send_xcm.

Returns either Ok with the price of the delivery, or Err with the reason why the message could not be sent.

Generally you’ll want to validate and get the price first to ensure that the sender can pay it before actually doing the delivery.