tfchain/TFChainWallet.py
def record_update(self, identifier, months=0, names_to_add=None, names_to_remove=None, addresses_to_add=None, addresses_to_remove=None, source=None, refund=None):
        """
        Update the record of an existing 3Bot, for which this Wallet is authorized to make such changes.
        Names and addresses can be added and removed. Removal of data is always for free, adding data costs money.
        Extra months can also be paid (up to 24 months in total), as to extend the expiration time further in the future.

        One of months, names_to_add, names_to_remove, addresses_to_add, addresses_to_remove has to be a value other than 0/None.

        Returns a TransactionSendResult.

        @param months: amount of months to be paid and added to the current months, if the 3Bot was inactive, the starting time will be now
        @param names_to_add: 3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
        @param names_to_remove: 3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
        @param addresses_to_add: Network Addresses to add and used to reach the 3Bot (minimum 0, maximum 10)
        @param addresses_to_remove: Network Addresses to remove and used to reach the 3Bot (minimum 0, maximum 10)
        @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)
        """
        if months < 1 and not reduce((lambda r, v: r or (v is not None)), [names_to_add, names_to_remove, addresses_to_add, addresses_to_remove], False):
            raise ValueError("extra months is to be given or one name/address is to be added/removed, none is defined")

        # create the txn and fill the easiest properties already
        txn = tftransactions.threebot_record_update_new()
        txn.botid = identifier
        txn.number_of_months = months
        txn.names_to_add = names_to_add
        txn.names_to_remove = names_to_remove
        txn.addresses_to_add = addresses_to_add
        txn.addresses_to_remove = addresses_to_remove

        # get the 3Bot Public Key
        record = self._wallet.client.threebot.record_get(identifier)
        # set the parent public key
        txn.parent_public_key = record.public_key

        # ensure the 3Bot is either active, or will be come active
        if record.expiration <= self._chain_time and months == 0:
            raise tfchain.errors.ThreeBotInactive(identifier, record.expiration)

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

        # sign, submit, update Balance and return result
        return self._sign_and_submit_txn(txn, balance)

        Update the record of an existing 3Bot, for which this Wallet is authorized to make such changes.
        Names and addresses can be added and removed. Removal of data is always for free, adding data costs money.
        Extra months can also be paid (up to 24 months in total), as to extend the expiration time further in the future.

        One of months, names_to_add, names_to_remove, addresses_to_add, addresses_to_remove has to be a value other than 0/None.

        Returns a TransactionSendResult.

        @param months: amount of months to be paid and added to the current months, if the 3Bot was inactive, the starting time will be now
        @param names_to_add: 3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
        @param names_to_remove: 3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
        @param addresses_to_add: Network Addresses to add and used to reach the 3Bot (minimum 0, maximum 10)
        @param addresses_to_remove: Network Addresses to remove and used to reach the 3Bot (minimum 0, maximum 10)
        @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)
        
Update the record of an existing 3Bot, for which this Wallet is authorized to make such changes.
Names and addresses can be added and removed. Removal of data is always for free, adding data costs money.
Extra months can also be paid (up to 24 months in total), as to extend the expiration time further in the future.

One of months, names_to_add, names_to_remove, addresses_to_add, addresses_to_remove has to be a value other than 0/None.


Update the record of an existing 3Bot for which this Wallet is authorized to make such changes . Names and addresses can be added and removed . Removal of data is always for free adding data costs money . Extra months can also be paid ( up to 24 months in total ) as to extend the expiration time further in the future . One of months names_to_add names_to_remove addresses_to_add addresses_to_remove has to be a value other than 0 / None .
def record_update(self, identifier, months=0, names_to_add=None, names_to_remove=None, addresses_to_add=None, addresses_to_remove=None, source=None, refund=None):
        if months < 1 and not reduce((lambda r, v: r or (v is not None)), [names_to_add, names_to_remove, addresses_to_add, addresses_to_remove], False):
            raise ValueError("extra months is to be given or one name/address is to be added/removed, none is defined")
        txn = tftransactions.threebot_record_update_new()
        txn.botid = identifier
        txn.number_of_months = months
        txn.names_to_add = names_to_add
        txn.names_to_remove = names_to_remove
        txn.addresses_to_add = addresses_to_add
        txn.addresses_to_remove = addresses_to_remove
        record = self._wallet.client.threebot.record_get(identifier)
        txn.parent_public_key = record.public_key
        if record.expiration <= self._chain_time and months == 0:
            raise tfchain.errors.ThreeBotInactive(identifier, record.expiration)
        balance = self._fund_txn(txn, source, refund)
        return self._sign_and_submit_txn(txn, balance)
def record_update ( self , identifier , months = 0 , names_to_add = None , names_to_remove = None , addresses_to_add = None , addresses_to_remove = None , source = None , refund = None ) : if months < 1 and not reduce ( ( lambda r , v : r or ( v is not None ) ) , [ names_to_add , names_to_remove , addresses_to_add , addresses_to_remove ] , False ) : raise ValueError ( "extra months is to be given or one name/address is to be added/removed, none is defined" ) txn = tftransactions . threebot_record_update_new ( ) txn . botid = identifier txn . number_of_months = months txn . names_to_add = names_to_add txn . names_to_remove = names_to_remove txn . addresses_to_add = addresses_to_add txn . addresses_to_remove = addresses_to_remove record = self . _wallet . client . threebot . record_get ( identifier ) txn . parent_public_key = record . public_key if record . expiration <= self . _chain_time and months == 0 : raise tfchain . errors . ThreeBotInactive ( identifier , record . expiration ) balance = self . _fund_txn ( txn , source , refund ) return self . _sign_and_submit_txn ( txn , balance )
Update the record of an existing 3Bot, for which this Wallet is authorized to make such changes.
Update the record of an existing 3Bot for which this Wallet is authorized to make such changes .
"""
        Update the record of an existing 3Bot, for which this Wallet is authorized to make such changes.
        Names and addresses can be added and removed. Removal of data is always for free, adding data costs money.
        Extra months can also be paid (up to 24 months in total), as to extend the expiration time further in the future.

        One of months, names_to_add, names_to_remove, addresses_to_add, addresses_to_remove has to be a value other than 0/None.

        Returns a TransactionSendResult.

        @param months: amount of months to be paid and added to the current months, if the 3Bot was inactive, the starting time will be now
        @param names_to_add: 3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
        @param names_to_remove: 3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
        @param addresses_to_add: Network Addresses to add and used to reach the 3Bot (minimum 0, maximum 10)
        @param addresses_to_remove: Network Addresses to remove and used to reach the 3Bot (minimum 0, maximum 10)
        @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 # get the 3Bot Public Key # set the parent public key # ensure the 3Bot is either active, or will be come active # get the fees, and fund the transaction # sign, submit, update Balance and return result
self
identifier
months
amount of months to be paid and added to the current months, if the 3Bot was inactive, the starting time will be now
amount of months to be paid and added to the current months if the 3Bot was inactive the starting time will be now
names_to_add
3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
3Bot Names to add to the 3Bot as aliases ( minumum 0 maximum 5 )
names_to_remove
3Bot Names to add to the 3Bot as aliases (minumum 0, maximum 5)
3Bot Names to add to the 3Bot as aliases ( minumum 0 maximum 5 )
addresses_to_add
Network Addresses to add and used to reach the 3Bot (minimum 0, maximum 10)
Network Addresses to add and used to reach the 3Bot ( minimum 0 maximum 10 )
addresses_to_remove
Network Addresses to remove and used to reach the 3Bot (minimum 0, maximum 10)
Network Addresses to remove and used to reach the 3Bot ( minimum 0 maximum 10 )
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 )