def add_recovery(self, ont_id: str, ctrl_acct: Account, b58_recovery_address: str, payer: Account, gas_limit: int,
                     gas_price: int):
        """
        This interface is used to send a Transaction object which is used to add the recovery.

        :param ont_id: OntId.
        :param ctrl_acct: an Account object which indicate who will sign for the transaction.
        :param b58_recovery_address: a base58 encode address which indicate who is the recovery.
        :param payer: an Account object which indicate who will pay for the transaction.
        :param gas_limit: an int value that indicate the gas limit.
        :param gas_price: an int value that indicate the gas price.
        :return: a Transaction object which is used to add the recovery.
        """
        b58_payer_address = payer.get_address_base58()
        pub_key = ctrl_acct.get_public_key_bytes()
        tx = self.new_add_recovery_transaction(ont_id, pub_key, b58_recovery_address, b58_payer_address, gas_limit,
                                               gas_price)
        tx.sign_transaction(ctrl_acct)
        tx.add_sign_transaction(payer)
        tx_hash = self.__sdk.get_network().send_raw_transaction(tx)
        return tx_hash
def add_recovery ( self , ont_id : str , ctrl_acct : Account , b58_recovery_address : str , payer : Account , gas_limit : int , gas_price : int ) : b58_payer_address = payer . get_address_base58 ( ) pub_key = ctrl_acct . get_public_key_bytes ( ) tx = self . new_add_recovery_transaction ( ont_id , pub_key , b58_recovery_address , b58_payer_address , gas_limit , gas_price ) tx . sign_transaction ( ctrl_acct ) tx . add_sign_transaction ( payer ) tx_hash = self . __sdk . get_network ( ) . send_raw_transaction ( tx ) return tx_hash
This interface is used to send a Transaction object which is used to add the recovery.

        :param ont_id: OntId.
        :param ctrl_acct: an Account object which indicate who will sign for the transaction.
        :param b58_recovery_address: a base58 encode address which indicate who is the recovery.
        :param payer: an Account object which indicate who will pay for the transaction.
        :param gas_limit: an int value that indicate the gas limit.
        :param gas_price: an int value that indicate the gas price.
        :return: a Transaction object which is used to add the recovery.