def METHOD_NAME(db, message, block_index):
    # Only used for `unpack` API call at the moment.
    try:
        asset_id, quantity = struct.METHOD_NAME(FORMAT, message)
        asset = util.get_asset_name(db, asset_id, block_index)
    except struct.error:
        raise exceptions.UnpackError('could not unpack')
    except AssetNameError:
        raise exceptions.UnpackError('asset id invalid')
    unpacked = {
                'asset': asset,
                'quantity': quantity
               }
    return unpacked