Trench heterojunction anode