Bottomhole treatment by chemical methods