tfchain/TFChainWallet.py
def name_transfer(self, sender, receiver, names, source=None, refund=None):
        """
        Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot.
        Both the Sender and Receiver 3Bots have to be active at the time of transfer.

        Returns a TransactionSendResult.

        @param sender: identifier of the existing and active 3Bot sender bot
        @param receiver: identifier of the existing and active 3Bot receiver bot
        @param names: 3Bot Names to transfer (minumum 0, maximum 5)
        @param source: one or multiple addresses/unlockhashes from which to fund this coin send transaction, by default all personal wallet addresses are used, only known addresses can be used
        @param refund: optional refund address, by default is uses the source if it specifies a single address otherwise it uses the default wallet address (recipient type, with None being the exception in its interpretation)
        """
        # create the txn and fill the easiest properties already
        txn = tftransactions.threebot_name_transfer_new()
        txn.sender_botid = sender
        txn.receiver_botid = receiver
        txn.names = names
        if len(txn.names) == 0:
            raise ValueError("at least one (3Bot) name has to be transfered, but none were defined")

        # keep track of chain time
        chain_time = self._chain_time

        # get and assign the 3Bot's public key for the sender
        record = self._wallet.client.threebot.record_get(sender)
        txn.sender_parent_public_key = record.public_key
        # ensure sender bot is active
        if record.expiration <= chain_time:
            raise tfchain.errors.ThreeBotInactive(sender, record.expiration)

        # get and assign the 3Bot's public key for the receiver
        record = self._wallet.client.threebot.record_get(receiver)
        txn.receiver_parent_public_key = record.public_key
        # ensure receiver bot is active
        if record.expiration <= chain_time:
            raise tfchain.errors.ThreeBotInactive(receiver, record.expiration)

        # get the fees, and fund the transaction
        balance = self._fund_txn(txn, source, refund)

        # sign and update Balance and return result,
        # only if the 3Bot owns both public keys, the Txn will be already,
        # submitted as well
        return self._sign_and_submit_txn(txn, balance)

        Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot.
        Both the Sender and Receiver 3Bots have to be active at the time of transfer.

        Returns a TransactionSendResult.

        @param sender: identifier of the existing and active 3Bot sender bot
        @param receiver: identifier of the existing and active 3Bot receiver bot
        @param names: 3Bot Names to transfer (minumum 0, maximum 5)
        @param source: one or multiple addresses/unlockhashes from which to fund this coin send transaction, by default all personal wallet addresses are used, only known addresses can be used
        @param refund: optional refund address, by default is uses the source if it specifies a single address otherwise it uses the default wallet address (recipient type, with None being the exception in its interpretation)
        
Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot.
Both the Sender and Receiver 3Bots have to be active at the time of transfer.


Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot . Both the Sender and Receiver 3Bots have to be active at the time of transfer .
def name_transfer(self, sender, receiver, names, source=None, refund=None):
        txn = tftransactions.threebot_name_transfer_new()
        txn.sender_botid = sender
        txn.receiver_botid = receiver
        txn.names = names
        if len(txn.names) == 0:
            raise ValueError("at least one (3Bot) name has to be transfered, but none were defined")
        chain_time = self._chain_time
        record = self._wallet.client.threebot.record_get(sender)
        txn.sender_parent_public_key = record.public_key
        if record.expiration <= chain_time:
            raise tfchain.errors.ThreeBotInactive(sender, record.expiration)
        record = self._wallet.client.threebot.record_get(receiver)
        txn.receiver_parent_public_key = record.public_key
        if record.expiration <= chain_time:
            raise tfchain.errors.ThreeBotInactive(receiver, record.expiration)
        balance = self._fund_txn(txn, source, refund)
        return self._sign_and_submit_txn(txn, balance)
def name_transfer ( self , sender , receiver , names , source = None , refund = None ) : txn = tftransactions . threebot_name_transfer_new ( ) txn . sender_botid = sender txn . receiver_botid = receiver txn . names = names if len ( txn . names ) == 0 : raise ValueError ( "at least one (3Bot) name has to be transfered, but none were defined" ) chain_time = self . _chain_time record = self . _wallet . client . threebot . record_get ( sender ) txn . sender_parent_public_key = record . public_key if record . expiration <= chain_time : raise tfchain . errors . ThreeBotInactive ( sender , record . expiration ) record = self . _wallet . client . threebot . record_get ( receiver ) txn . receiver_parent_public_key = record . public_key if record . expiration <= chain_time : raise tfchain . errors . ThreeBotInactive ( receiver , record . expiration ) balance = self . _fund_txn ( txn , source , refund ) return self . _sign_and_submit_txn ( txn , balance )
Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot.
Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot .
"""
        Transfer one or multiple 3Bot names from the sender 3Bot to the receiver 3Bot.
        Both the Sender and Receiver 3Bots have to be active at the time of transfer.

        Returns a TransactionSendResult.

        @param sender: identifier of the existing and active 3Bot sender bot
        @param receiver: identifier of the existing and active 3Bot receiver bot
        @param names: 3Bot Names to transfer (minumum 0, maximum 5)
        @param source: one or multiple addresses/unlockhashes from which to fund this coin send transaction, by default all personal wallet addresses are used, only known addresses can be used
        @param refund: optional refund address, by default is uses the source if it specifies a single address otherwise it uses the default wallet address (recipient type, with None being the exception in its interpretation)
        """ # create the txn and fill the easiest properties already # keep track of chain time # get and assign the 3Bot's public key for the sender # ensure sender bot is active # get and assign the 3Bot's public key for the receiver # ensure receiver bot is active # get the fees, and fund the transaction # sign and update Balance and return result, # only if the 3Bot owns both public keys, the Txn will be already, # submitted as well
self
sender
identifier of the existing and active 3Bot sender bot
identifier of the existing and active 3Bot sender bot
receiver
identifier of the existing and active 3Bot receiver bot
identifier of the existing and active 3Bot receiver bot
names
3Bot Names to transfer (minumum 0, maximum 5)
3Bot Names to transfer ( minumum 0 maximum 5 )
source
one or multiple addresses/unlockhashes from which to fund this coin send transaction, by default all personal wallet addresses are used, only known addresses can be used
one or multiple addresses / unlockhashes from which to fund this coin send transaction by default all personal wallet addresses are used only known addresses can be used
refund
optional refund address, by default is uses the source if it specifies a single address otherwise it uses the default wallet address (recipient type, with None being the exception in its interpretation)
optional refund address by default is uses the source if it specifies a single address otherwise it uses the default wallet address ( recipient type with None being the exception in its interpretation )