

def btc_asset_swap(self, btc_transfer_spec, asset_id, asset_transfer_spec, fees):
    '\n        Creates a transaction for swapping assets for bitcoins.\n\n        :param TransferParameters btc_transfer_spec: The parameters of the bitcoins being transferred.\n        :param bytes asset_id: The ID of the asset being sent.\n        :param TransferParameters asset_transfer_spec: The parameters of the asset being transferred.\n        :param int fees: The fees to include in the transaction.\n        :return: The resulting unsigned transaction.\n        :rtype: CTransaction\n        '
    return asset_transfer_spec.transfer([(asset_id, asset_transfer_spec)], btc_transfer_spec, fees)

dataset/ETHPy150Open OpenAssets/openassets/openassets/transactions.py TransactionBuilder.btc_asset_swap/VarMisuse@21/202 `self`->`asset_transfer_spec`