Crate orml_xtokens
source ·Expand description
Xtokens Module
Overview
The xtokens module provides cross-chain token transfer functionality, by cross-consensus messages(XCM).
The xtokens module provides functions for
- Token transfer from parachains to relay chain.
- Token transfer between parachains, including relay chain tokens like DOT, KSM, and parachain tokens like ACA, aUSD.
Interface
Dispatchable functions
transfer
: Transfer local assets with givenCurrencyId
andAmount
.transfer_multiasset
: TransferMultiAsset
assets.transfer_with_fee
: Transfer native currencies specifying the fee and amount as separate.transfer_multiasset_with_fee
: TransferMultiAsset
specifying the fee and amount as separate.transfer_multicurrencies
: Transfer several currencies specifying the item to be used as fee.transfer_multiassets
: Transfer severalMultiAsset
specifying the item to be used as fee.
Re-exports
pub use module::*;
Modules
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.