but i heard that most of the gold is dissolved is in the form of AuCl4-, ?
It is. But there are three problems with Aqua Regia:
1. It will dissolve electrodes on its own, and that will interfere with your idea of electrolysis.
2. It has low pH and thus hydrogen evolution is very easy - that will interfere too.
3. Cl
- presence in electrolyte can end up with Cl
2 evolution.
You will have to check exact potentials and complexation constants to calculate what happens in the solution (you will also need overpotantial for hydrogen evolution on gold), but my gut feeling is that you have to go for high pH and no chlorides. Adding strong complexation agent (like CN
-) you are facilitating electrolytical Au dissolution, as the oxidized Au
3+ is removed (in the form of complex) from the solution.
If I recall correctly CN
- complexation is strong enough to allow oxidation of gold by the atmospheric oxygen.