referrerpolicy=no-referrer-when-downgrade

build_transact_xcm

Function build_transact_xcm 

Source
pub fn build_transact_xcm(
    encoded_call: Vec<u8>,
    origin_kind: OriginKind,
) -> Xcm<()>
Expand description

Builds an XCM message with UnpaidExecution + Transact from an encoded call, dispatched with origin_kind.

This is the standard pattern for messages from a system parachain to the relay chain or to a sibling system parachain, where the destination trusts the origin and doesn’t charge fees.