Probing inert anodes with high-energy X-rays