referrerpolicy=no-referrer-when-downgrade

Function pallet_indices::pallet::dispatchables::transfer

source ·
pub fn transfer<T: Config>(
    new: <<T as Config>::Lookup as StaticLookup>::Source,
    index: T::AccountIndex,
)
Expand description

Assign an index already owned by the sender to another account. The balance reservation is effectively transferred to the new account.

The dispatch origin for this call must be Signed.

  • index: the index to be re-assigned. This must be owned by the sender.
  • new: the new owner of the index. This function is a no-op if it is equal to sender.

Emits IndexAssigned if successful.

§Complexity

  • O(1).

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::transfer.