unlock_asset
Retrieves an asset from the lock account back to the specified account. Note that this function does not perform any authorization before moving the assets; users should thus not be given direct access to this function.
Can only be called from an operation.
Throws if the required assets cannot be moved. Common cases include:
the amount to transfer is not in the accepted range (0, 2^256) (exclusive)
some conditions added in development through transfer extensions (
before_transfer
orafter_transfer
) aren't metthe lock account's balance is lower than
amount
, which means there's less locked tokens than what is being unlocked
Parameters
the type of lock account to which the asset were locked
account that locked the assets
the asset to unlock
how much of the specified asset to unlock
See also
for more information on lock accounts