Function pallet_xcm::pallet::dispatchables::reserve_transfer_assets
source · pub fn reserve_transfer_assets<T: Config>(
dest: Box<VersionedMultiLocation>,
beneficiary: Box<VersionedMultiLocation>,
assets: Box<VersionedMultiAssets>,
fee_asset_item: u32
)
Expand description
Transfer some assets from the local chain to the sovereign account of a destination chain and forward a notification XCM.
Fee payment on the destination side is made from the asset in the assets
vector of
index fee_asset_item
. The weight limit for fees is not provided and thus is unlimited,
with all fees taken as needed from the asset.
origin
: Must be capable of withdrawing theassets
and executing XCM.dest
: Destination context for the assets. Will typically beX2(Parent, Parachain(..))
to send from parachain to parachain, orX1(Parachain(..))
to send from relay to parachain.beneficiary
: A beneficiary location for the assets in the context ofdest
. Will generally be anAccountId32
value.assets
: The assets to be withdrawn. This should include the assets used to pay the fee on thedest
side.fee_asset_item
: The index intoassets
of the item which should be used to pay fees.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::reserve_transfer_assets
.