Return the deposit (if any) of an asset account or a consumer reference (if any) of an account.
The origin must be Signed.
id
allow_burn
true
It will fail with either [Error::ContainsHolds] or [Error::ContainsFreezes] if the asset account contains holds or freezes in place.
Error::ContainsHolds
Error::ContainsFreezes
Emits Refunded event when successful.
Refunded
Return the deposit (if any) of an asset account or a consumer reference (if any) of an account.
The origin must be Signed.
id: The identifier of the asset for which the caller would like the deposit refunded.allow_burn: Iftruethen assets may be destroyed in order to complete the refund.It will fail with either [
Error::ContainsHolds] or [Error::ContainsFreezes] if the asset account contains holds or freezes in place.Emits
Refundedevent when successful.