def transfer(self, to, amount, asset, memo="<STR_LIT>", account=None, **kwargs):
from .memo import Memo<EOL>if not account:<EOL><INDENT>if "<STR_LIT>" in self.config:<EOL><INDENT>account = self.config["<STR_LIT>"]<EOL><DEDENT><DEDENT>if not account:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>account = Account(account, blockchain_instance=self)<EOL>amount = Amount(amount, asset, blockchain_instance=self)<EOL>to = Account(to, blockchain_instance=self)<EOL>memoObj = Memo(from_account=account, to_account=to, blockchain_instance=self)<EOL>op = operations.Transfer(<EOL>**{<EOL>"<STR_LIT>": {"<STR_LIT>": <NUM_LIT:0>, "<STR_LIT>": "<STR_LIT>"},<EOL>"<STR_LIT>": account["<STR_LIT:id>"],<EOL>"<STR_LIT:to>": to["<STR_LIT:id>"],<EOL>"<STR_LIT>": {"<STR_LIT>": int(amount), "<STR_LIT>": amount.asset["<STR_LIT:id>"]},<EOL>"<STR_LIT>": memoObj.encrypt(memo),<EOL>"<STR_LIT>": self.prefix,<EOL>}<EOL>)<EOL>return self.finalizeOp(op, account, "<STR_LIT>", **kwargs)<EOL>
Transfer an asset to another account.

            :param str to: Recipient
            :param float amount: Amount to transfer
            :param str asset: Asset to transfer
            :param str memo: (optional) Memo, may begin with `#` for encrypted
                messaging
            :param str account: (optional) the source account for the transfer
                if not ``default_account``