All chains
    Preparing search index...
    refund: TxDescriptor<{ allow_burn: boolean; id: number }>

    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: If true then 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 Refunded event when successful.