Procaine is now rarely used for local anaesthesia, as more effective substances, such as lidocaine, are available for this purpose.
The use of procaine blocks voltage-dependent sodium channels and thus prevents the rapid sodium influx (which is responsible for depolarisation at the cell membrane of axons). This prevents stimulus transmission. In animal experiments, it has been shown that the administration of procaine increased the dopamine and serotonin levels in the brain.
If you want to be sure that your cocaine really only contains cocaine and in what dose, you should have it chemically analysed.